英文:
Mat-select in mat-pagination is behaving abnormally
问题
我已经创建了一个项目,用户需要执行CRUD操作并在表格中查看输出。一切都正常工作,但有时mat-paginator
中的mat-select
开始表现异常。我已经制作了多个项目,但从未见过这种问题。请参考这个视频(注意红色方框区域)。
我已经检查了我的其他项目,以匹配Angular Material和Angular版本,但发现一切都相同。
我期望的是不应该发生这种情况。另外需要注意的是,这并不是同时发生在项目中的所有表格上。
英文:
I have made a project where an user needs to perform CRUD operation & see the output in a table. Everything is working fine here but sometimes the mat-select
in the mat-paginator
starts behaving abnormally. I have made multiple projects but never ever saw this type of issue. Please see this video for reference (focus on the red squared area).
I have checked my other projects to match the Angular material & Angular version but found everything is same.
What am expecting is this should not happen. Also on a side note, this is not occuring for all tables in the project in same time.
答案1
得分: 2
我注意到在进行了一些深度级别的调试并查看了每个组件的CSS文件后,我发现我为视频中打开的对话框编写了以下CSS。移除它后问题得以解决。
::ng-deep .mat-form-field-wrapper {
padding-bottom: 0 !important;
}
英文:
After some deep level debugging & looking at the CSS files of each component, I notice that I wrote the below CSS for the dialog that's opening in the video. Removing that fixed the issue.
::ng-deep .mat-form-field-wrapper {
padding-bottom: 0 !important;
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论