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 dde3392 commit 758dfc7Copy full SHA for 758dfc7
src/RangePicker.tsx
@@ -390,8 +390,9 @@ function InnerRangePicker<DateType>(props: RangePickerProps<DateType>) {
390
391
// Delay to focus to avoid input blur trigger expired selectedValues
392
setTimeout(() => {
393
- if (endInputRef.current) {
394
- endInputRef.current.focus();
+ const inputRef = [startInputRef, endInputRef][missingValueIndex];
+ if (inputRef.current) {
395
+ inputRef.current.focus();
396
}
397
}, 0);
398
0 commit comments