Skip to content

Commit

Permalink
[@mantine/dates] TimeInput: Call onChange prop function when clearing…
Browse files Browse the repository at this point in the history
… TimeInput (#1342)
  • Loading branch information
uf0h committed Apr 28, 2022
1 parent 665c045 commit d324375
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mantine-dates/src/components/TimeInput/TimeInput.tsx
Expand Up @@ -224,6 +224,7 @@ export const TimeInput = forwardRef<HTMLInputElement, TimeInputProps>(
const handleClear = () => {
setTime({ hours: '', minutes: '', seconds: '', amPm: '' });
setValue(null);
onChange?.(null);
hoursRef.current.focus();
};

Expand Down

0 comments on commit d324375

Please sign in to comment.