Skip to content

Commit

Permalink
Merge pull request #26372 from jiyiru/my-first-storybook-contribution
Browse files Browse the repository at this point in the history
Controls: Fix number controls do not reset
  • Loading branch information
ndelangen authored Mar 12, 2024
2 parents 171374c + 99969fb commit 2c00719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ui/blocks/src/controls/Number.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const NumberControl: FC<NumberProps> = ({
}
}, [value]);

if (!forceVisible && value === undefined) {
if (value === undefined) {
return (
<Button
variant="outline"
Expand Down

0 comments on commit 2c00719

Please sign in to comment.