In vue, can events be bubbled after they are removed?

The

parent element binds a click event through the on ("click") method, and the child element binds a click event through v-on .

when the parent element is clicked, the handler of the parent element"s click event is triggered. The click event of the parent element is removed in handler through the off () method, when the child element is clicked, a bubble occurs and the handler of the parent element is executed.

Why?

Mar.22,2021

that's because the JS of your element is still alive when the vue lifecycle die falls.

Menu