Skip to content

Commit

Permalink
docs: fix defaultSelectedOptions for Dropdown and Combobox examples (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
george-cz authored Oct 30, 2023
1 parent 21232e3 commit 688efac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Controlled = (props: Partial<ComboboxProps>) => {
<div className={styles.root}>
<div className={styles.field}>
<label htmlFor={`${comboId}-default`}>Schedule a meeting (default selection)</label>
<Combobox id={`${comboId}-default`} {...props} defaultValue="Elvia Atkins" defaultSelectedOptions={['ea']}>
<Combobox id={`${comboId}-default`} {...props} defaultValue="Elvia Atkins" defaultSelectedOptions={['eatkins']}>
<Option text="Katri Athokas" value="kathok">
<Persona
avatar={{ color: 'colorful', 'aria-hidden': true }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Controlled = (props: Partial<DropdownProps>) => {
<div className={styles.root}>
<div className={styles.field}>
<label htmlFor={`${comboId}-default`}>Schedule a meeting (default selection)</label>
<Dropdown id={`${comboId}-default`} {...props} defaultValue="Elvia Atkins" defaultSelectedOptions={['ea']}>
<Dropdown id={`${comboId}-default`} {...props} defaultValue="Elvia Atkins" defaultSelectedOptions={['eatkins']}>
<Option text="Katri Athokas" value="kathok">
<Persona
avatar={{ color: 'colorful', 'aria-hidden': true }}
Expand Down

0 comments on commit 688efac

Please sign in to comment.