mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Fix button disabled behavior
This commit is contained in:
@@ -144,9 +144,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
&:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
|
||||
@@ -35,9 +35,7 @@ const Button = memo(
|
||||
<button
|
||||
ref={btnRef}
|
||||
tabIndex={disabled ? -1 : 0}
|
||||
className={clsx("button", finalClassName, {
|
||||
disabled,
|
||||
})}
|
||||
className={clsx("button", finalClassName)}
|
||||
disabled={disabled}
|
||||
{...props}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user