Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
r0mm4k committed Nov 5, 2024
1 parent 7aacd22 commit 963ab6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ const Input = forwardRef<InputRef, InputProps>((props, ref) => {
}));

useEffect(() => {
keyLockRef.current && (keyLockRef.current = false);
if (keyLockRef.current) {
keyLockRef.current = false;

Check warning on line 98 in src/Input.tsx

View check run for this annotation

Codecov / codecov/patch

src/Input.tsx#L98

Added line #L98 was not covered by tests
}

setFocused((prev) => (prev && disabled ? false : prev));
}, [disabled]);

Expand Down

0 comments on commit 963ab6c

Please sign in to comment.