Update to 1.1.32
This commit is contained in:
1 parent
b4ddfc4736
commit
c0149ef6af
6 files changed
+9
-10
No files matched your search
@@ -31,10 +31,10 @@ export default function Input(props: {
|
||||
}, []);
|
||||
|
||||
const scheduleUnfocus = useCallback(() => {
|
||||
blurRef.current = false;
|
||||
clearUnfocusTimer();
|
||||
|
||||
unfocusTimerRef.current = setTimeout(() => {
|
||||
blurRef.current = false;
|
||||
ref.current?.blur();
|
||||
}, 5e3);
|
||||
}, [clearUnfocusTimer]);
|
||||
@@ -101,7 +101,6 @@ export default function Input(props: {
|
||||
blurRef={blurRef}
|
||||
onInput={(value) => {
|
||||
props.onChange && props.onChange(value);
|
||||
|
||||
if (isFocused) {
|
||||
scheduleUnfocus();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user