Skip to content

Commit

Permalink
Added key to ranges to force rerender of the component onDiscard
Browse files Browse the repository at this point in the history
  • Loading branch information
jinambo committed Mar 11, 2024
1 parent 5039f06 commit 1e124ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ const Toolbar: React.FC = () => {
<h6>{`Adjust ${title.toLowerCase()}`}</h6>
<small>{description}</small>
<RangeInput
key={`${action}-${adjustableValues[action]}`}
min={min}
max={max}
initialValue={adjustableValues[action]}
Expand Down

0 comments on commit 1e124ba

Please sign in to comment.