Answer the question
In order to leave comments, you need to log in
StopPropagation for checkbox not working on click?
Good afternoon, I encountered such a problem that when a checkbox is selected, @click on the parent element is triggered, i.e. when clicking on the input, it calls both the firstMethod and the secondMethod,
tried to solve the problem through the .stop modifier for the event in vue, but it didn’t help, the component itself looks like this:
<h5 @click="первыйМетод">
<input type="checkbox"
@click.stop
@input="второйМетод"
/>
</h5>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question