Skip to content

Commit 362622c

Browse files
committed
[Fix] TypeError: v(...).cleanup is not a function
1 parent 9baa28c commit 362622c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ export default {
7676
},
7777

7878
unmounted: (el: core.CustomInputElement) => {
79-
core.getInputElement(el).cleanup()
79+
core.getInputElement(el)?.cleanup()
8080
}
8181
}

0 commit comments

Comments
 (0)