Skip to content

Commit

Permalink
chore(combobox): adjusted disabled story to have an initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
richbachman committed May 3, 2021
1 parent df6d8f1 commit 0757b99
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,15 @@ ComboboxErrorInverse.story = {
};

export const ComboboxDisabled = (): React.ReactNode => {
return <Combobox items={items} labelText="Choose a component:" helpText="This is the help text" disabled />;
return (
<Combobox
items={items}
labelText="Choose a component:"
helpText="This is the help text"
initialSelectedItem={items[2]}
disabled
/>
);
};

ComboboxDisabled.story = {
Expand All @@ -251,6 +259,7 @@ export const ComboboxDisabledInverse = (): React.ReactNode => {
items={items}
labelText="Choose a component:"
helpText="This is the help text"
initialSelectedItem={items[2]}
disabled
variant="inverse"
/>
Expand Down

0 comments on commit 0757b99

Please sign in to comment.