Skip to content

Commit

Permalink
Update packages/react-components/react-color-picker-preview/stories/s…
Browse files Browse the repository at this point in the history
…rc/ColorPicker/ColorAndSwatchPicker.stories.tsx

Co-authored-by: Victor Genaev <[email protected]>
  • Loading branch information
ValentinaKozlova and mainframev authored Dec 16, 2024
1 parent 53f9401 commit 333cfb2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export const ColorAndSwatchPickerExample = () => {

const resetColors = () => {
setItems([]);
setColorFocusTarget(selectedValue);
setColorFocusTarget(null);
setSelectedValue('fff');
setSelectedColor('#fff');
setColor(DEFAULT_COLOR_HSV);
};

React.useEffect(() => {
Expand Down

0 comments on commit 333cfb2

Please sign in to comment.