Prevented props deactivated by toggles from firing
This commit is contained in:
@@ -27,6 +27,7 @@ const applyPropertyByType = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default function applyProperty(node, actionContext, ...rest) {
|
export default function applyProperty(node, actionContext, ...rest) {
|
||||||
|
if (node.node.deactivatedByToggle) return;
|
||||||
actionContext.scope[`#${node.node.type}`] = node.node;
|
actionContext.scope[`#${node.node.type}`] = node.node;
|
||||||
applyPropertyByType[node.node.type]?.(node, actionContext, ...rest);
|
applyPropertyByType[node.node.type]?.(node, actionContext, ...rest);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user