mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Fix button disabled behavior
This commit is contained in:
parent
479414fbd1
commit
3ade98879b
@ -144,9 +144,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled {
|
&:disabled {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus,
|
&:focus,
|
||||||
|
@ -35,9 +35,7 @@ const Button = memo(
|
|||||||
<button
|
<button
|
||||||
ref={btnRef}
|
ref={btnRef}
|
||||||
tabIndex={disabled ? -1 : 0}
|
tabIndex={disabled ? -1 : 0}
|
||||||
className={clsx("button", finalClassName, {
|
className={clsx("button", finalClassName)}
|
||||||
disabled,
|
|
||||||
})}
|
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user