-
Notifications
You must be signed in to change notification settings - Fork 1.8k
DDL flickers when items are refreshed #1314
Comments
The current implementation sets Can this not easily be avoided by assigning |
@colinmorelli Well the issue is still there. With 600 open issues, I wonder when this issue would be resolved. Anyways, looking at angular-ui typeahead may solve this. It has the same functionality, yet it doesn't flicker on item source refresh. @onemenny |
@shyamal890 this is not the same control. look at my pull requests #1371 I already enhanced it with more bug fixes |
@onemenny Ya, saw saw your commit afterwards, sorry. |
I would also recommend looking to UI Bootstrap's position service - it has solved most position issues. We would like to open source it as a separate module, perhaps even make it jqLite agnostic so that users can use it as a pure JS positioning service, as well as allow usage with ng2. Until then, it may be worth copying the implementation there to fix this. |
When items source is refreshed the dropdown calculates the position. calculating the position uses timeout to set opacity=0/1 till the calculation ends. So if the user types something and items gets refreshed the ddl flickers on every key stroke.
@dimirc commited this change on sep30 abc4ce9?diff=unified
I cannot think on any reason to calculate the position on Items refresh, the way I see it, position should be set only on init (before drop is shown for the first time). None the less this is a bug that caused me to revert to version 0.12.1 instead of 0.13.*
The text was updated successfully, but these errors were encountered: