mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Button): should not submit form when loading (#8735)
This commit is contained in:
parent
a393114118
commit
9d28b276f1
@ -86,6 +86,9 @@ function Button(
|
||||
}
|
||||
|
||||
function onClick(event: Event) {
|
||||
if (props.loading) {
|
||||
event.preventDefault();
|
||||
}
|
||||
if (!loading && !disabled) {
|
||||
emit(ctx, 'click', event);
|
||||
functionalRoute(ctx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user