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

fix: ensure the pointer-init class is removed when updating the "locked" state #6312

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

WilliamDASILVA
Copy link
Contributor

The locking mechanism does not work as expected when unlocking an element.
This is due to the fact that both pointer-init and no-pointer classes are present on the element.
When unlocking and then locking the element, we expect the element to remain locked.

This PR ensures that pointer-init is removed along with the other classes to avoid conflict.

Reproduction in https://app.grapesjs.com/
2024-11-18 at 10 49 22 - Tan Lark

Copy link
Member

@artf artf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @WilliamDASILVA thank you 🙇‍♂️

@artf artf merged commit 954a37a into GrapesJS:dev Dec 4, 2024
3 checks passed
@WilliamDASILVA WilliamDASILVA deleted the fix/locked-pointer-class branch December 5, 2024 08:23
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