Skip to content

Commit

Permalink
fix inheritance bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Jul 3, 2022
1 parent d326ae3 commit 3f741ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/src/index.js
Expand Up @@ -40,7 +40,7 @@ options._diff = vnode => {
? vnode._parent._children.indexOf(vnode)
: 0;
vnode._mask = parentMask + position;
} else {
} else if (!vnode._mask) {
vnode._mask = vnode._parent._mask;
}
currentComponent = null;
Expand Down

0 comments on commit 3f741ed

Please sign in to comment.