Skip to content

Commit

Permalink
hotfix: init css value - check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
foxeyes committed Jun 16, 2022
1 parent 39f3d79 commit 4aaec6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/BaseComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ export class BaseComponent extends HTMLElement {
this.__boundCssProps = new Set();
}
this.__boundCssProps.add(propName);
let val = this.getCssData(this.__extractCssName(propName), true) || initValue;
let val = this.getCssData(this.__extractCssName(propName), true);
val === null && (val = initValue);
this.add(propName, val);
this.__initStyleAttrObserver();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.8.1",
"version": "1.8.2",
"description": "Symbiote.js",
"author": "[email protected]",
"license": "MIT",
Expand Down

0 comments on commit 4aaec6c

Please sign in to comment.