fix: add pointerEvent to disabled button

This commit is contained in:
QiShaoXuan
2022-12-19 18:11:13 +08:00
parent a76ab1e729
commit 0a54138db8
2 changed files with 11 additions and 4 deletions
@@ -57,7 +57,10 @@ export const StyledListItem = styled.button<{
borderRadius: '5px',
...displayFlex('flex-start', 'center'),
...(disabled
? { cursor: 'not-allowed', color: theme.colors.borderColor }
? {
cursor: 'not-allowed',
color: theme.colors.borderColor,
}
: {}),
'>svg': {