Skip to content

Commit d2d2e6f

Browse files
committed
fix: reset mask config in unbind hook
attempt to fix #24
1 parent 9bd4f9b commit d2d2e6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/directive.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ export default {
2424
}
2525
},
2626

27-
unbind: (el) => el.removeEventListener('input', core.inputHandler, true)
27+
unbind: (el) => {
28+
el.removeEventListener('input', core.inputHandler, true)
29+
el[CONFIG_KEY] = undefined
30+
}
2831
}

0 commit comments

Comments
 (0)