-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultiSelect's OptionsMenu Does Not Fire a CloseEvent Consistently Upon Closing #1018
Comments
I still cant reproduce this one, the close listener is being triggered consistently for me. Any more hints on how to reproduce this? |
Hmm, for me it happens with a low number of items and gets very consistent when e.g. using 1000 items (in general: the more items, the more consistently this happens). I simply open the dropdown, select an item and click outside of the dropdown to close it, then repeat this. This results in "CLOSED" not being printed to the log everytime (in my case, once the user would select some values, a call to the server would be triggered using the selected values which then in turn update some other fields in a form. Since this is often some expensive call, I only do it once the close event is fired. ChangeEvent works consistenly by the way, but I cannot use that because of the expensive calculation, that's the reason I rely on CloseEvents to collect the final user selection). Can you reproduce it using more items (500, 1000, etc.)? Then it should happen very consistently. Two more notes: I'm mainly closing the dropdown by clicking outside of it, not using ESC and not clicking on the MultiSelect component. I'm using Chrome, so I'm not sure if your findings from #1017 might have an influence here. Also keep in mind that I'm using the last release build 2.0.3. Maybe some fixes you implemented for 2.0.4 (like #976) make this obsolete. If you cannot reproduce it, can you release 2.0.4 so that I can check again with all the changes? |
@vegegoku Could you reproduce it with my hints? |
I actually tested with 3000 items. Can you test with SNAPSHOTS? |
This is with 1500 select options and I still cant reproduce, I will close the issue assuming it was fixed automatically from a different fix. Screencast.from.2025-03-19.13-40-53.webm |
Seems to fire consistently now, thanks |
The CloseEvent is not fired consistently in the above code. It seems to only happen if there are 'a lot' of options appended to the component. So, de/selecting items and clicking outside of the OptionsMenu does not always result in a CloseEvent fired. This seems to get worse the more items are in the menu
The text was updated successfully, but these errors were encountered: