From 9ba8bd0a2ab2f98da00dc5cfec83706043b50ada Mon Sep 17 00:00:00 2001 From: Peter Krenesky Date: Sat, 16 Dec 2023 18:29:13 -0800 Subject: [PATCH] Config form slider widgets were not saving values --- frontend/json_form/fields/Slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/json_form/fields/Slider.js b/frontend/json_form/fields/Slider.js index 1f70bf0d..e67f0a02 100644 --- a/frontend/json_form/fields/Slider.js +++ b/frontend/json_form/fields/Slider.js @@ -4,7 +4,7 @@ import { getLabel } from "json_form/utils"; export const Slider = ({ name, field, value, onChange }) => { const handleChange = React.useCallback( (newValue) => { - onChange({ [name]: event.target.value }); + onChange({ [name]: newValue }); }, [field, onChange] );