admin管理员组文章数量:1277603
p-dropdown brakes when [options] array length changes.
Hi Guys, I have a p-dropdown element in Angular app, which breaks if the length of the array changes.
here is the code:
<p-dropdown
[options]="(ngrxSelector$ | async)!"
[showClear]="true"
[virtualScroll]="true"
[virtualScrollItemSize]="30"
[editable]="true"
optionValue="value"
optionLabel="value"
displayProperty="name"
variant="filled"
appendTo="body"
(onChange)="searchForData($event)"
[editable]="true"
[showClear]="true"
></p-dropdown>
If we perform some change, when we type in the field, we ask the backend for data and update the dropdown options. In this moment, sometimes, the dropdown display brakes, but there are some entries in the array, which should be displayed. See screenshot.
I tried to set min-width and height in the element, but it does not seem to work
it looks like the <ul role="listbox">
that contains the options array just changes its position and goes on top.
Thanks
Tried all possible predefined prime NG settings. Display should not brake if the options array changes
本文标签: primengpdropdown brakes when options array length changes Angular Prime NGStack Overflow
版权声明:本文标题:primeng - p-dropdown brakes when [options] array length changes Angular Prime NG - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741211151a2359145.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论