Skip to content

Commit

Permalink
Fix primefaces#7323: Clear timer in InputNumber component on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
tnowad committed Oct 10, 2024
1 parent ca593ef commit 68fb7fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/lib/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,12 @@ export const InputNumber = React.memo(
ObjectUtils.combinedRefs(inputRef, props.inputRef);
}, [inputRef, props.inputRef]);

React.useEffect(() => {
return () => {
clearTimer();
};
}, []);

useMountEffect(() => {
constructParser();

Expand Down

0 comments on commit 68fb7fa

Please sign in to comment.