* 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:
@@ -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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<button class="vue-flow__controls-button">
|
<button type="button" class="vue-flow__controls-button">
|
||||||
<slot />
|
<slot />
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user