form icon indicating copy to clipboard operation
form copied to clipboard

docs(vue): use event modifiers to enhance readability

Open Psycarlo opened this issue 11 months ago • 0 comments

Instead of using the arrow function:

(e) => {
  e.preventDefault()
  e.stopPropagation()
  form.handleSubmit()
}

we can just use event modifiers like this:

@submit.prevent.stop="form.handleSubmit"

enhancing readability ✨

Psycarlo avatar Mar 15 '25 13:03 Psycarlo