Skip to content

allow for more complex selectors in parseSelector#6684

Merged
artf merged 3 commits intoGrapesJS:devfrom
tomekczm:dev
Apr 1, 2026
Merged

allow for more complex selectors in parseSelector#6684
artf merged 3 commits intoGrapesJS:devfrom
tomekczm:dev

Conversation

@tomekczm
Copy link
Copy Markdown
Contributor

@tomekczm tomekczm commented Jan 9, 2026

this allowes you to have a selector with additional pseudoclasses like :not(.some-class-name) which would previously get interpreted as 2 seperate selectors

main benefit from this change is that if you add :not(.gjs-selected) to all your states in selectorManager, the default one becomes a preview of your component as stateless rather than a life preview, which also fixes a issue where if your component is in dragMode absolute and some state offsets the position, making the dragging glitchy

@tomekczm tomekczm changed the title allow for more comples selectors in parseSelector allow for more complex selectors in parseSelector Jan 9, 2026
@artf artf merged commit 47fbb1b into GrapesJS:dev Apr 1, 2026
3 checks passed
@artf
Copy link
Copy Markdown
Member

artf commented Apr 1, 2026

Thank you @tomekczm

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