mirror of
https://github.com/youzan/vant.git
synced 2026-05-06 01:00:26 +08:00
fix(Button): should not submit form when loading (#8735)
This commit is contained in:
@@ -86,6 +86,9 @@ function Button(
|
||||
}
|
||||
|
||||
function onClick(event: Event) {
|
||||
if (props.loading) {
|
||||
event.preventDefault();
|
||||
}
|
||||
if (!loading && !disabled) {
|
||||
emit(ctx, 'click', event);
|
||||
functionalRoute(ctx);
|
||||
|
||||
Reference in New Issue
Block a user