vue 2.0 Why is the event not triggered when using @click.self to bind itself?
Scenario:
Mobile terminal development, click on the mask layer to close the pop-up window, but the p box on the mask layer cannot be triggered, that is, the parent is triggered, and the event will not be passed to the child
Vue provides a .self modifier. It has been used before, but it suddenly doesn’t work this time. I don’t know what happened. . .
Is your p box a sub-component? If it is a sub-component, I guess you need to add @click.native. The official document has it, search it.
@click.native.self