Angular 13 页面末尾出现奇怪的空行
我使用在 Angular 12 上运行的 NGX-ADMIN 模板。 在更新到 Angular 13(并且仅更改 Angular 版本)之后,我遇到了这个问题,并且我不知道如何识别此类问题。 您有什么想法,或者您知道如何识别此类问题的根源吗?
我再次确认,确实是 Angular 版本从 12 到 13 的修改导致了这个问题。
Angular 也有同样的问题:14.0.0-next.5
问题链接:https:/ /github.com/akveo/ngx-admin/issues/5919
"@angular/animations": "^13.2.5",
"@angular/cdk": "^13.2.5",
"@angular/common": "^13.2.5",
"@angular/compiler": "^13.2.5",
"@angular/core": "^13.2.5",
"@angular/forms": "^13.2.5",
"@angular/material": "^13.2.5",
"@angular/platform-browser": "^13.2.5",
"@angular/platform-browser-dynamic": "^13.2.5",
"@angular/router": "^13.2.5",
经过一番研究,问题似乎从那里出现:
<div class="cdk-describedby-message-container cdk-visually-hidden" style="visibility: hidden;"><div id="cdk-describedby-message-1">Sort</div></div>
手动删除后,问题得到解决。但现在我该怎么做才能不出现
I use the NGX-ADMIN template which runs on Angular 12.
Following an update to Angular 13 (and only a change in the versions of Angular), I encounter this problem, and I have no idea how to identify this type of problem.
Would you have an idea, or do you know how to identify this type of problem, the origin?
I confirm once again that it is indeed the modification of the versions of angular from 12 to 13 which generated this problem.
Same problem with Angular : 14.0.0-next.5
Link of the issue : https://github.com/akveo/ngx-admin/issues/5919
"@angular/animations": "^13.2.5",
"@angular/cdk": "^13.2.5",
"@angular/common": "^13.2.5",
"@angular/compiler": "^13.2.5",
"@angular/core": "^13.2.5",
"@angular/forms": "^13.2.5",
"@angular/material": "^13.2.5",
"@angular/platform-browser": "^13.2.5",
"@angular/platform-browser-dynamic": "^13.2.5",
"@angular/router": "^13.2.5",
After some research the problem seems to appears from there :
<div class="cdk-describedby-message-container cdk-visually-hidden" style="visibility: hidden;"><div id="cdk-describedby-message-1">Sort</div></div>
After manually deleting this, problem is solved. But now how cna i do in order that does not appear
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案在这里:https://github.com/angular/components/issues/24516
如果您不使用材料:
添加:
@angular/cdk/a11y-prebuilt.css
到你的全局CSS样式中(例如:style.scss)Answer is here : https://github.com/angular/components/issues/24516
If you are not using material :
Add :
@angular/cdk/a11y-prebuilt.css
into you global css style (example : style.scss)