[Discussion]Event handler(register by "v-on") cannot be unbound in vue3. #11855
parasol-tree
started this conversation in
General Discussions
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to unbind event handler(register by "v-on") in vue3?
Vue SFC Playground for example
The following code for example:
Although this situation can be solved by not using the "v-on" command but using "addEventListener", "removeEventListener" instead.
But still hope vue3 will add an API initiative to remove event listeners(register by "v-on") in the future.
Beta Was this translation helpful? Give feedback.
All reactions