Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Fix: DOS-237 - Added props.onchange to the callback dependency of numeric inputs and added onKeyDown property so we can bind to it #58

Merged
merged 5 commits into from
Dec 21, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ui-components/src/numeric-input/numeric-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const NumericInput = React.forwardRef<HTMLInputElement, NumericInputProps>(
props.onChange?.(parsed, e);
},
// eslint-disable-next-line react-hooks/exhaustive-deps
jsumiguin-causalens marked this conversation as resolved.
Show resolved Hide resolved
[props.integerOnly, props.value]
[props.integerOnly, props.value, props.onChange]
);

useEffect(() => {
Expand Down
Loading