Skip to content

Commit

Permalink
Force literal true` to be set as an attribute with a value of empty s…
Browse files Browse the repository at this point in the history
…tring.
  • Loading branch information
Steven Orvell committed Oct 11, 2017
1 parent c91b9d1 commit 1b50194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/properties-changed.html
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
if (!value && value !== '' && value !== 0) {
node.removeAttribute(attribute);
} else {
node.setAttribute(attribute, value);
node.setAttribute(attribute, value === true ? '' : value);
}
}

Expand Down

0 comments on commit 1b50194

Please sign in to comment.