[Dropdown]: unable conditionally render a dropdown on button click #11102
Labels
0 - new
New issues that need assignment.
ArcGIS Site Scan
Issues logged by ArcGIS Site Scan team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
impact - p1 - need for current milestone
User set priority impact status of p1 - need for current milestone
needs triage
Planning workflow - pending design/dev review.
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: