Skip to content

Conversation

@snehasipani
Copy link

What

Consolidates selection-related side effects under a single
SelectionObserver instance.

Why

TextSelectionManager was creating multiple SelectionObserver instances
for the same layer. This change avoids duplicate observers and ensures
consistent attach/detach behavior.

Scope

No user-visible behavior change intended.

Notes

Adds a type guard to ensure classList is accessed only on Element nodes
when walking the DOM.

@snehasipani
Copy link
Author

Hi maintainers, this PR is ready from my side.
Please let me know if any changes are needed.
Thanks!

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