Skip to content

Commit acb8fdb

Browse files
committed
fix: review comment
1 parent a3d4b3c commit acb8fdb

File tree

1 file changed

+1
-1
lines changed
  • src/PickerInput/Selector/SingleSelector

1 file changed

+1
-1
lines changed

src/PickerInput/Selector/SingleSelector/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function SingleSelector<DateType extends object = any>(
130130
const rootProps = useRootProps(restProps);
131131

132132
// ======================== Change ========================
133-
const handleSingleChange = (date: DateType) => {
133+
const handleSingleChange = (date: DateType | null) => {
134134
if (date === null) {
135135
// When date is null (from manual clear), delegate to onClear handler
136136
// to properly trigger onChange and close the picker

0 commit comments

Comments
 (0)