-
Notifications
You must be signed in to change notification settings - Fork 81
[Dropdown]: unable conditionally render a dropdown on button click #11102
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
Comments
Calcite has now aligned the @svlesiv Could the use case support triggering the component through the |
Unfortunately, we cannot use |
Thanks for your help @geospatialem. Adding more context to the use case Svitlana is referring to. We found that when rendering many dropdowns at once, there is a significant performance hit. By deferring dropdown rendering by triggering with an external (to the dropdown) button, we can mitigate the performance drop. The trigger slot does not work for us as that requires rendering the dropdown. We must rely on the The workaround Svitlana referred to is to stop the click event from propagating and being caught by the newly rendered and opened (via |
@gpbmike This is not a bug, while it may have worked previously the intent of the |
I would like some clarification. I'm also dynamically rendering dropdowns with custom components and using |
Check existing issues
Actual Behavior
To avoid loading dropdown content, we used an external trigger button that renders the dropdown only on a button click. It worked in v2.6.0, but starting from v2.7.0, it seems that clicking the external trigger button is treated as a click outside, causing the modal to close immediately.
Expected Behavior
The dropdown component would be displayed when clicking on a button (outside the dropdown) that changes the state of a variable to render the dropdown.
Reproduction Sample
https://codepen.io/svlesiv/pen/vEBxJgZ
Reproduction Steps
External Trigger
button.Reproduction Version
2.13.2
Relevant Info
No response
Regression?
2.6.0
Priority impact
impact - p1 - need for current milestone
Impact
Rendering a table with many dropdowns would again decrease the performance that was improved by https://github.com/ArcGIS/sitescan-manager/pull/7069 PR.
Calcite package
Esri team
ArcGIS Site Scan
The text was updated successfully, but these errors were encountered: