Skip to content

Commit

Permalink
🐛 Fix incorrect handling of boolean attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoLegends committed Mar 4, 2018
1 parent 2237f44 commit b0e2f6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dom-flip",
"version": "0.2.5",
"version": "0.2.6",
"description": "Smooth position animation for web components",
"main": "dist/dom-flip.js",
"repository": "https://github.com/NeoLegends/dom-flip.git",
Expand Down
2 changes: 1 addition & 1 deletion src/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default class DomFlip extends HTMLElement {
attributeChangedCallback(name: string, oldValue: string, newValue: string) {
switch (name) {
case AttributeNames.Active:
this.active = !!newValue;
this.active = newValue != null;
this._updateListeners();
break;
case AttributeNames.AttrName:
Expand Down

0 comments on commit b0e2f6b

Please sign in to comment.