-
Notifications
You must be signed in to change notification settings - Fork 80
after sorting blocks a list within a block no longer sorts #6024
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
cc @driskull for when he's back. @geospatialem is there any status on this? Can a milestone be set please? |
@lau11123 Apologies for the lack of communication, we'll be prioritizing issues after this month's release for inclusion in upcoming releases. Will post an update once we're able to assign a milestone in a few weeks. |
@geospatialem thanks! |
Additional research and follow-up needed pertaining to the |
related to #2489 (comment) |
**Related Issue:** #6024 ## Summary The main problem is: - Sortable components set up a `Sortable` instance on `connectedCallback` and destroy `Sortable` on `disconnectedCallback`. - When dragging a `Sortable` component with another `Sortable` component inside of it, it triggers the child component's `connectedCallback`/`disconnectedCallback` methods which initialize/destroy a `Sortable`. This causes JS errors and UI problems. - When a Sortable instance is being dragged (active), we should prevent `connectedCallback`/`disconnectedCallback` from doing anything with the inactive `Sortable` instances. (not destroy them & recreate them). Solution: - Create an interface for `SortableComponent` components to follow. - Make sure the interface does not destroy other nested sortable instances while dragging.
Installed and assigned for verification. |
Actual Behavior
I have a sortable list of blocks and some of them contain a sortable list. All is well until you re-order the blocks, then the inner list no longer sorts.
Expected Behavior
sorting keeps working
Reproduction Sample
https://codepen.io/afreitag/pen/eYKweaz
Reproduction Steps
Reproduction Version
beta.98
Relevant Info
No response
Regression?
don't think so
Impact
moderate-high
Esri team
ArcGIS Map Viewer
The text was updated successfully, but these errors were encountered: