diff --git a/CHANGELOG.md b/CHANGELOG.md index f8c1b114..a7637068 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] - YYYY-MM-DD +### Fixed + +- [#270](https://github.com/equinor/webviz-core-components/pull/270) - Fixed bug in `Select `component not allowing value to be `0`. + ## [0.6.0] - 2022-10-03 ### Fixed diff --git a/react/src/lib/components/Select/Select.stories.tsx b/react/src/lib/components/Select/Select.stories.tsx index e1535962..1b9848e7 100644 --- a/react/src/lib/components/Select/Select.stories.tsx +++ b/react/src/lib/components/Select/Select.stories.tsx @@ -40,8 +40,9 @@ const Template: ComponentStory = (args) => { export const Basic = Template.bind({}); Basic.args = { id: Select.defaultProps?.id || "select-component", - size: Select.defaultProps?.size || 5, + size: 6, options: [ + { label: 0, value: 0 }, { label: 1, value: 1 }, { label: 2, value: 2 }, { label: 3, value: 3 }, diff --git a/react/src/lib/components/Select/Select.tsx b/react/src/lib/components/Select/Select.tsx index 6db69475..a8e82838 100644 --- a/react/src/lib/components/Select/Select.tsx +++ b/react/src/lib/components/Select/Select.tsx @@ -223,14 +223,14 @@ export const Select: React.FC> = ( >