Skip to content

Commit 2bc3435

Browse files
committed
fix scope
1 parent a56be82 commit 2bc3435

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/process/clearHidden.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ type ClearHiddenScope = ProcessorScope & {
1717
*/
1818
export const clearHiddenProcess: ProcessorFnSync<ClearHiddenScope> = (context) => {
1919
const { component, data, path, value, scope } = context;
20+
if (!scope.clearHidden) {
21+
scope.clearHidden = {};
22+
}
2023
if (component.hidden && value !== undefined && (!component.hasOwnProperty('clearOnHide') || component.clearOnHide)) {
2124
unset(data, path);
2225
scope.clearHidden[path] = true;

0 commit comments

Comments
 (0)