Skip to content

Commit cf47d52

Browse files
authored
Fix bug caused by attributeChangedCallback firing early
1 parent c049872 commit cf47d52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ function connectedCallback() {
2525
}
2626

2727
function attributeChangedCallback(name, oldValue, newValue) {
28+
if (!this._vdom) return;
2829
const props = {};
2930
props[name] = newValue;
3031
this._vdom = cloneElement(this._vdom, props);

0 commit comments

Comments
 (0)