Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@react-spectrum/combobox/docs/ComboBox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ function Example() {
validationState={!animalId ? undefined : isValid ? 'valid' : 'invalid'}
label="Favorite animal"
description="Pick your favorite animal, you will be judged."
errorMessage={animalId === 2 ? 'The author of this example is a dog person.' : 'Oh god it\'s a snake! Choose anything else.'}
errorMessage={animalId === 2 ? 'The author of this example is a dog person.' : 'Oh no it\'s a snake! Choose anything else.'}
items={options}
selectedKey={animalId}
onSelectionChange={selected => setAnimalId(selected)}>
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-spectrum/picker/docs/Picker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function Example() {
validationState={isValid ? 'valid' : 'invalid'}
label="Favorite animal"
description="Pick your favorite animal, you will be judged."
errorMessage={animalId === 2 ? 'The author of this example is a dog person.' : 'Oh god it\'s a snake! Choose anything else.'}
errorMessage={animalId === 2 ? 'The author of this example is a dog person.' : 'Oh no it\'s a snake! Choose anything else.'}
items={options}
selectedKey={animalId}
onSelectionChange={selected => setAnimalId(selected)}>
Expand Down