Skip to content

Commit

Permalink
Update props.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Christian <[email protected]>
  • Loading branch information
JoviDeCroock and rschristian authored May 22, 2024
1 parent df195e2 commit e16bb25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function setProperty(dom, name, value, oldValue, namespace) {
if (typeof value == 'function') {
// never serialize functions as attribute values
} else if (value != null && (value !== false || name[4] === '-')) {
dom.setAttribute(name, name === 'popover' && value === true ? '' : value);
dom.setAttribute(name, name == 'popover' && value == true ? '' : value);
} else {
dom.removeAttribute(name);
}
Expand Down

0 comments on commit e16bb25

Please sign in to comment.