Skip to content

Commit

Permalink
[@mantine/core] PinInput: Fix incorrect onComplete behavior (#5774, #…
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Feb 16, 2024
1 parent e94e7d9 commit 55a0c81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@mantine/core/src/components/PinInput/PinInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,8 @@ export const PinInput = factory<PinInputFactory>((props, ref) => {

useEffect(() => {
if (_valueToString.length !== length) return;

onComplete?.(_valueToString);
}, [length, onComplete, _valueToString]);
}, [length, _valueToString]);

return (
<>
Expand Down

0 comments on commit 55a0c81

Please sign in to comment.