We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef818fb commit dc2e010Copy full SHA for dc2e010
src/useDateInput.js
@@ -57,7 +57,7 @@ export default function useDateInput({
57
if (!focused) {
58
setValue(isValidAndSelectable(selectedDate) ? formatDate(selectedDate) : '')
59
}
60
- }, [selectedDate]) // eslint-disable-line react-hooks/exhaustive-deps
+ }, [selectedDate, focused]) // eslint-disable-line react-hooks/exhaustive-deps
61
62
return {
63
onFocus: handleFocus,
0 commit comments