Skip to content

Bug #14661 #888

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

Merged
merged 1 commit into from
Jan 30, 2025
Merged

Bug #14661 #888

merged 1 commit into from
Jan 30, 2025

Conversation

mmoqui
Copy link
Member

@mmoqui mmoqui commented Jan 30, 2025

Fix the bug. The d&d handling was based upon the .jstree-draggable class. But since the refactoring within the fix of the bug 14478, the with this CSS class didn't receive anymore the mouse event but its parent because this one had a class attribute set. Without the class attribute in the parent, the element succeed to receive any mouse click down event on it. Nevertheless, in order the d&d mechanism works on publications, it was needed to move the id attribute from the element to the <span class=".jstree-draggable> element because this publication identifier is fetched from this id on the dragged HTML node. So, the click event handler of the node required to be refined to take into account of this (because the id attribute was also fetched to figure out the identifier of the publication to redirect the user to.

Fix the bug. The d&d handling was based upon the .jstree-draggable
class. But since the refactoring within the fix of the bug 14478,
the <span> with this CSS class didn't receive anymore the mouse
event but its <a> parent because this one had a class attribute set.
Without the class attribute in the <a> parent, the <span> element
succeed to receive any mouse click down event on it. Nevertheless, in
order the d&d mechanism works on publications, it was needed to move the
id attribute from the <a> element to the <span class=".jstree-draggable>
element because this publication identifier is fetched from this id on
the dragged HTML node. So, the click event handler of the <a> node
required to be refined to take into account of this (because the
id attribute was also fetched to figure out the identifier of the
publication to redirect the user to.
Copy link

@mmoqui mmoqui merged commit 9f58894 into 6.4.x Jan 30, 2025
3 checks passed
@mmoqui mmoqui deleted the bug-14661 branch February 3, 2025 11:21
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.

1 participant