diff --git a/lib/index.js b/lib/index.js index 027c4d6..a73310a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,14 +14,12 @@ exports.properties = { props(target, pnode) }, state (target, state, type, stamp, subs, tree, id, pid) { - const pnode = getParent(type, stamp, subs, tree, pid) - if (!pnode) { - console.error('No pnode') - return - } - if (!pnode._styleStaticParsed) { - props(target, pnode) - pnode._styleStaticParsed = true + if (type !== 'remove') { + const pnode = getParent(type, stamp, subs, tree, pid) + if (!pnode._styleStaticParsed) { + props(target, pnode) + pnode._styleStaticParsed = true + } } } },