[bugfix] Correct postUpdateAction handling in slider component.

- Fixed bug where postUpdateAction was not properly passed as a prop to the slider component
- Prevented infinite re-renders by removing postUpdateAction from the dependency array
This commit is contained in:
Sakamoto Shiina
2025-11-07 08:09:18 +09:00
parent 9b69ffe8ff
commit 4770908831
2 changed files with 2 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ export const Slider = (props) => {
} = useSliderLogic({
current_value: props.current_value,
setterFunction: props.setterFunction,
postUpdateAction: props.postUpdateAction,
min: props.min,
max: props.max,
step: props.step,