* fix(controls): add `type="button"` to avoid form submissions (#1911) * chore(changeset): add --------- Co-authored-by: Hossam Hassan <58523735+devhus@users.noreply.github.com>
This commit is contained in:
5
.changeset/clever-rabbits-guess.md
Normal file
5
.changeset/clever-rabbits-guess.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@vue-flow/controls": patch
|
||||
---
|
||||
|
||||
Add `type="button"` to control buttons to avoid form submission if controls are nested in a form element.
|
||||
@@ -6,7 +6,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<button class="vue-flow__controls-button">
|
||||
<button type="button" class="vue-flow__controls-button">
|
||||
<slot />
|
||||
</button>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user