mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 22:20:19 +00:00
fix: also prevent default on buttons
This commit is contained in:
parent
fc5dd8f562
commit
4818c44c7c
1 changed files with 5 additions and 0 deletions
|
@ -217,6 +217,11 @@ export class Interpreter {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// also prevent buttons from submitting
|
||||
if (target.tagName == "BUTTON") {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
// walk the tree to find the real element
|
||||
while (realId == null) {
|
||||
|
|
Loading…
Reference in a new issue