Skip to content

Commit bebc7e1

Browse files
authored
Merge pull request #48 from Kater-auf-Dach/Kater-auf-Dach-patch-1
Clear input text on programmatically date clearing
2 parents 40cf3a2 + ec12d36 commit bebc7e1

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
@@ -245,6 +245,7 @@ const Datepicker: React.FC<Props> = ({
245245
start: null,
246246
end: null
247247
});
248+
setInputText("");
248249
}
249250
}, [asSingle, value, displayFormat, separator]);
250251

0 commit comments

Comments
 (0)