Prevented props deactivated by toggles from firing

This commit is contained in:
Stefan Zermatten
2023-08-24 12:35:54 +02:00
parent d578a87632
commit d973463126

View File

@@ -27,6 +27,7 @@ const applyPropertyByType = {
};
export default function applyProperty(node, actionContext, ...rest) {
if (node.node.deactivatedByToggle) return;
actionContext.scope[`#${node.node.type}`] = node.node;
applyPropertyByType[node.node.type]?.(node, actionContext, ...rest);
}