Skip to content

ProtectEditing breaks Simpla elements in shadow roots #17

@madeleineostoja

Description

@madeleineostoja

Right now protectEditing doesn't take shadow trees into account, which means that any elements that lie inside one have all pointer events disabled (from the shadow root host) and are broken.

protectEditing should automatically spin up new observers for any shadow roots it comes across, not just disable the whole tree. This needs to be fixed ASAP though, and if that requires the WC v1 registry to work well, then as an interim measure we should check if an element is a shadow host, and if so leave it alone. Better to have unprotected clicks in shadow roots than kill Simpla elements

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions