Skip to content
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

[7.1-stable] Merge pull request #2750 from tvdeyen/fix-sortable-elements #2751

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.1-stable:

Questions ?

Please refer to the Backport tool documentation

Make sure that nested elements of all elements get initialized
as sortable after being created, not just fixed.

(cherry picked from commit df533be)
SortableJS sends two events if you drag an element from one
nesteable elements container to another. Leading to incrementing
the target lists positions to high.

Since acts_as_list maintains both lists correctly we can simply
suppress the second event on the source list.

(cherry picked from commit fa8a966)
@tvdeyen tvdeyen merged commit 0b0f932 into 7.1-stable Feb 27, 2024
55 checks passed
@tvdeyen tvdeyen deleted the backport/7.1-stable/pr-2750 branch February 27, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants