Skip to content

Commit

Permalink
Maek property writes consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed May 9, 2024
1 parent dd53621 commit fdcf4aa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ export const setAttr = (
name in node
) {
try {
if (isComponent(node)) {
(node as any)[name] = value;
} else {
node[name] = value == null ? "" : value;
}
node[name] = value;
return;
} catch (e) {}
}
Expand Down

0 comments on commit fdcf4aa

Please sign in to comment.