问题描述
我刚刚更新角材质的版本,我使用的1.0.6
I just updated the version of Angular Material I am using to 1.0.6
现在,当我使用MD-选择+ MD-选项,尽管所有正确的选项和相应的MD-选项DOM元素显示在检查器中,在下拉列表中不会在单击显示,而不是页面(Chrome浏览器)完全冻结。无控制台引发错误。
Now when I use md-select + md-option, although all the correct options and corresponding md-option DOM elements display in the inspector, the drop down list does not display upon click, and instead the page (Chrome browser) freezes completely. No console error is thrown.
下面是我的code:
md-select(
aria-label='select number of seats'
ng-show="bookable.seatsperbooking>1"
ng-model="appt.seats")
md-option(
ng-repeat='num in getnumber(seatsallowed) track by $index'
value='{{num}}') {{ num }}
和这里的检查,这说明选择DOM元素的正确数量的截图:
选项
and here is a screenshot of the inspector, which shows the correct number of option DOM elements:screenshot of options
推荐答案
有同样的问题。
更新AngularJS到1.5.5新版本(W /角材料1.0.7)后解决了这个问题。
Having same problem.After updating AngularJS to newer version 1.5.5 (w/ Angular Material 1.0.7) solved the problem.
这篇关于角材料MD-选择不显示MD-选项,并点击后,页面冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!