Skip to content

Commit

Permalink
fix: updateAttributes에 nullish 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
9yurilee committed Dec 27, 2024
1 parent ed7945e commit f95e4ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/updateElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function updateAttributes(target, originNewProps, originOldProps) {
const eventType = attr.slice(2).toLowerCase();
removeEvent(target, eventType, value);
} else {
target.removeAttribute(attr);
target?.removeAttribute(attr);
}
}
});
Expand Down

0 comments on commit f95e4ea

Please sign in to comment.