Skip to content

Commit

Permalink
Remove storybook controls for SingleSelect disabled story. Because th…
Browse files Browse the repository at this point in the history
…e storybook args included opened:false, the select was always closed, which was hiding a bug where the disabled select could still be opened using keyboard arrows
  • Loading branch information
beaesguerra committed Jun 11, 2024
1 parent 9eecfc5 commit 0fbd580
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions __docs__/wonder-blocks-dropdown/single-select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,8 @@ export const LongOptionLabels: StoryComponentType = {
* remains focusable while communicating to screen readers that it is disabled.
*/
export const Disabled: StoryComponentType = {
render: (args) => (
render: () => (
<SingleSelect
{...args}
placeholder="Choose a fruit"
onChange={() => {}}
selectedValue=""
Expand Down

0 comments on commit 0fbd580

Please sign in to comment.