Skip to content

Conversation

@mydea
Copy link
Contributor

@mydea mydea commented Feb 27, 2023

When an attribute is removed via el.removeAttribute('my-attr'), this triggers the mutation observer with a null value for the attribute. This is currently not handled by the code/types.

This PR adjusts this to handle this case explicitly.

mydea and others added 3 commits February 27, 2023 10:31
The attribute `value` can be null when a mutation observer triggers due to a removed attribute. This is currently not reflected by types and code.
@changeset-bot
Copy link

changeset-bot bot commented Feb 27, 2023

🦋 Changeset detected

Latest commit: b242c56

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
rrweb-snapshot Patch
rrweb Patch
rrdom Patch
rrdom-nodejs Patch
rrweb-player Patch
@rrweb/types Patch
@rrweb/web-extension Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@YunFeng0817 YunFeng0817 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! Thanks for your contribution.

@YunFeng0817 YunFeng0817 merged commit 8e47ca1 into rrweb-io:master Feb 27, 2023
@mydea mydea deleted the fn/fix-attribute-check branch February 28, 2023 08:48
eoghanmurray added a commit to eoghanmurray/rrweb that referenced this pull request Nov 11, 2023
eoghanmurray added a commit to eoghanmurray/rrweb that referenced this pull request Nov 28, 2023
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