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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

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

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