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

Recognize new nodes and class name changes on existing nodes #7

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

jeremyfelt
Copy link
Member

Add a mutation observer for the add and remove actions to reset their behavior on an element that was observed, but then had its observer disconnected once the add or remove was triggered. (It's meant to be a one time action) This mutation observer watches for class name changes so that if a previously triggered element has a change that causes it to be triggerable again, we recognize that.

Add a mutation observer that watches for new elements and adds new observers to them.

Add a unique identifier to observed elements so that we can prevent observing them multiple times.

Add a mutation observer for the `add` and `remove` actions to
reset their behavior on an element that was observed, but then
had its observer disconnected once the add or remove was triggered.
(It's meant to be a one time action) This mutation observer watches
for class name changes so that if a previously triggered element
has a change that causes it to be triggerable again, we recognize
that.

Add a mutation observer that watches for new elements and adds new
observers to them.

Add a unique identifier to observed elements so that we can prevent
observing them multiple times.
@jeremyfelt jeremyfelt merged commit f2e4588 into trunk Nov 1, 2024
1 check passed
@jeremyfelt jeremyfelt deleted the fix/recognize-new-nodes branch November 1, 2024 21:09
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