Skip to content

Commit

Permalink
[@mantine/dates] TimeInput: Hide clear button when input is disabled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
song7788q committed Sep 3, 2022
1 parent 4dad414 commit 5285783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-dates/src/components/TimeInput/TimeInput.tsx
Expand Up @@ -246,7 +246,7 @@ export const TimeInput = forwardRef<HTMLInputElement, TimeInputProps>(
};

const rightSection =
clearable && _value ? (
clearable && _value && !disabled ? (
<CloseButton
variant="transparent"
aria-label={clearButtonLabel}
Expand Down

0 comments on commit 5285783

Please sign in to comment.