Skip to content

Commit c266dc2

Browse files
authored
fix: Combobox docs example (#7439)
* fix: Combobox docs example * fix controlled as well
1 parent 10a43de commit c266dc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-aria-components/docs/ComboBox.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ function Example() {
462462
label="Adobe product (Uncontrolled)"
463463
defaultItems={options}
464464
/*- begin highlight -*/
465+
defaultSelectedKey={2}
465466
defaultInputValue="Adobe XD">
466467
{/*- end highlight -*/}
467468
{item => <ListBoxItem>{item.name}</ListBoxItem>}
@@ -471,6 +472,7 @@ function Example() {
471472
label="Pick an Adobe product (Controlled)"
472473
defaultItems={options}
473474
/*- begin highlight -*/
475+
defaultSelectedKey={2}
474476
inputValue={value}
475477
onInputChange={setValue}>
476478
{/*- end highlight -*/}

0 commit comments

Comments
 (0)