Skip to content

Commit ec12d36

Browse files
Update Datepicker.tsx
Clear input text on programmatically date clearing
1 parent 1760383 commit ec12d36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Datepicker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ const Datepicker: React.FC<Props> = ({
239239
start: null,
240240
end: null
241241
});
242+
setInputText("");
242243
}
243244
}, [asSingle, value, displayFormat, separator]);
244245

0 commit comments

Comments
 (0)