prevent blur event on click

4f568f3f61aba3ec45488f9e11235afa
7 abril, 2023

prevent blur event on click

The usage would be v-on:click="handler" or with the shortcut, @click="handler". Thanks for contributing an answer to Stack Overflow! stopPropagation() The problem is clicking the button fires the input blur event and then the button click event so content inserted by the button is not what is validated. You don't have to release. next.js 178 Questions The list varies a bit between browsers, but one thing is always correct: focus/blur support is guaranteed for elements that a visitor can interact with:

prevent blur event on click