Skip to content

Commit

Permalink
Merge pull request #349 from kreneskyp/fix_slider
Browse files Browse the repository at this point in the history
Config form slider widgets were not saving values
  • Loading branch information
kreneskyp authored Dec 17, 2023
2 parents 048ad1c + 9ba8bd0 commit 6e3a1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/json_form/fields/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);
Expand Down

0 comments on commit 6e3a1a2

Please sign in to comment.