Skip to content

Commit

Permalink
fix(comp:button): disabled btn when group disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kovsu committed Mar 23, 2023
1 parent 703122f commit a989a28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/button/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export default defineComponent({
})

const handleClick = (evt: MouseEvent) => {
if (props.disabled || props.loading) {
const { disabled = groupProps.disabled } = props

if (disabled || props.loading) {
evt.preventDefault()
evt.stopImmediatePropagation()
return
Expand Down

0 comments on commit a989a28

Please sign in to comment.