-
Notifications
You must be signed in to change notification settings - Fork 78
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
Sortable list item's action menu don't close correctly after item is reordered #7445
Closed
2 of 3 tasks
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Hub
Issues logged by ArcGIS Hub 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.
estimate - 2
Small fix or update, may require updates to tests.
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Comments
For next steps, Calcite should consider:
|
5 tasks
driskull
added a commit
that referenced
this issue
Dec 6, 2023
driskull
added a commit
that referenced
this issue
Dec 6, 2023
**Related Issue:** #7445 ## Summary - Set autoClose on internal popover - Remove event listener on window - Listen for popover close to set `open` property to false. - Updates existing test. (Already a test to ensure closure of menu when clicking outside)
Installed and assigned for verification. |
Tested locally on Results:
Screen.Recording.2023-12-08.at.2.30.23.PM.mov |
driskull
added a commit
that referenced
this issue
Dec 8, 2023
Nice catch @DitwanP! thanks for finding this. PR incoming 🚀 |
driskull
added a commit
that referenced
this issue
Dec 9, 2023
**Related Issue:** #7445 ## Summary - Keep open property in sync with open property of internal popover - Update menu button element when connectedCallback occurs. - Add test
Installed and assigned for verification. |
🍰 Verified locally on Results:
Screen.Recording.2023-12-11.at.12.39.52.PM.mov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Hub
Issues logged by ArcGIS Hub 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.
estimate - 2
Small fix or update, may require updates to tests.
p - medium
Issue is non core or affecting less that 60% of people using the library
Check existing issues
Actual Behavior
<calcite-block>
items within a<calcite-sortable-list>
have a built in actions menu popover. On initial render, the actions menu works fine. Clicking the toggle opens the popover. The popover can be closed by clicking an action, clicking outside, or clicking the toggle again.Screen.Recording.2023-08-03.at.5.10.17.PM.mov
However, the moment that a
<calcite-block>
is reordered, the actions menu breaks. Clicking the toggle still opens the popover, but now the popover will not close after clicking an action or clicking outside. It will only close if the toggle is clickedScreen.Recording.2023-08-03.at.5.10.55.PM.mov
Expected Behavior
The actions menu popover should close when an action is clicked or the user clicks outside, just like it did on the initial render.
Reproduction Sample
https://codepen.io/sonofflynn89-the-reactor/pen/qBQvEbj
Reproduction Steps
The code pen has them enumerated
Reproduction Version
1.5.0
Relevant Info
No response
Regression?
No response
Priority impact
p3 - want for upcoming milestone
Impact
While flows are not prohibited, it is jarring to see that after an action is clicked, the menu remains open. Our users could have up to 5 of these popovers stuck open at a time unless they know they know that they need to click the toggle button again.
Calcite package
Esri team
ArcGIS Hub
The text was updated successfully, but these errors were encountered: