tui-data-list-wrapper closes when new data is fetched #9440
Replies: 1 comment 13 replies
-
Please make a Stackblitz to investigate |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ment tuiDropdown closes :)
Hi,
recently i got suggestion from you guys on how to implement dropdown
and it works fine however i want to laod data dynamically upo open. For this i have this peace of code
however with this, it starts to open (i see animation) but when new data is loaded and items changed, dropdown closes.
I am not sure why it closes (i am not changing prop open. From my point of view items inside opened dropdown should change.
I was trying to add observable behaviour like this
where isDataReady is firing after data is fetched and i was hoping that one tick would be enough to render it. However same thing is happening unless i wait in setTimeout roughly 2000ms before setting open signal.
Maybe there is some builtin observable awaiter or some prop that forces dropdown to stay opened no amtter waht?
if i could understand the cause of it close behaviour, it would be easier for me to solve this.
p.s. i think this is somehow is related with tuiDropdpown it self.. its slowlines.. because after receiveing data, data is immediatly printed with
{{ itemLabels() | json }}
however i am able 3 times click on dopdown arraw before it opens. 2 times dropdown does not react at all!Beta Was this translation helpful? Give feedback.
All reactions