Skip to content

Commit

Permalink
fix: Set default onChange in SliderControl
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed Jan 21, 2022
1 parent 7caa743 commit 45947bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ type SliderControlProps = {
};

export default function SliderControl(props: SliderControlProps) {
const { default: defaultValue, ...rest } = props;
const { onChange = () => {}, default: defaultValue, ...rest } = props;
return (
<>
<ControlHeader />
<Slider {...rest} defaultValue={defaultValue} />
<Slider {...rest} onChange={onChange} defaultValue={defaultValue} />
</>
);
}

0 comments on commit 45947bc

Please sign in to comment.