Skip to content

Commit ccd4c43

Browse files
fix: update
1 parent 3db54d4 commit ccd4c43

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/PickerInput/Selector/Input.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,17 +350,12 @@ const Input = React.forwardRef<InputRef, InputProps>((props, ref) => {
350350
return;
351351
}
352352

353-
// Reset with format if not match (always apply when focused so mask works when focusing by mousedown)
353+
// Reset with format if not match
354354
if (!maskFormat.match(inputValue)) {
355355
triggerInputChange(format);
356356
return;
357357
}
358358

359-
// When mousedown get focus, defer selection to mouseUp so click position is used
360-
if (mouseDownRef.current) {
361-
return;
362-
}
363-
364359
// Match the selection range
365360
inputRef.current.setSelectionRange(selectionStart, selectionEnd);
366361

0 commit comments

Comments
 (0)