Skip to content

Commit f9ea8f3

Browse files
Fix Calendar mask not firing onInput event (#8458)
* Fix Calendar showing value when controlled state is not updated * Fix lint issues in Calendar controlled value sync * Fix unstable updateInputfield dependency via ref * Fix: stabilize updateInputfield ref to satisfy hooks lint * Fix Calendar mask not firing onInput event * Fix lint: add padding line in Calendar updateValueOnInput * Fix lint: add padding line in Calendar updateValueOnInput * Refactor useEffect for value updates in Calendar.js * Remove unnecessary line in Calendar.js --------- Co-authored-by: Melloware <mellowaredev@gmail.com>
1 parent f01edcf commit f9ea8f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

components/lib/calendar/Calendar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ export const Calendar = React.memo(
162162
};
163163

164164
const updateValueOnInput = (event, rawValue, invalidCallback) => {
165+
props.onInput && props.onInput(event);
166+
165167
try {
166168
const value = parseValueFromString(props.timeOnly ? rawValue.replace('_', '') : rawValue);
167169

0 commit comments

Comments
 (0)