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 d5bba8d commit 88c80f2Copy full SHA for 88c80f2
src/PickerInput/Selector/hooks/useInputProps.ts
@@ -185,8 +185,9 @@ export default function useInputProps<DateType extends object = any>(
185
return;
186
}
187
188
+ // Handle intentional clearing: when text is empty, trigger onChange with null
189
if (text === '') {
- onInvalid(false, index);
190
+ onInvalid(false, index); // Reset invalid state before clearing the value
191
onChange(null, index);
192
193
0 commit comments