Skip to content

Commit cb4bf8c

Browse files
committed
fix(button): disable button when loading or pending and close #1952
1 parent e79303b commit cb4bf8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/varlet-ui/src/button/Button.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
background: states.color,
2626
}"
2727
:type="nativeType"
28-
:disabled="disabled"
28+
:disabled="disabled || loading || pending"
2929
@click="handleClick"
3030
@touchstart="handleTouchstart"
3131
@focus="handleFocus"

0 commit comments

Comments
 (0)