Skip to content

Commit 72be369

Browse files
authored
followup to issue #1015 (#1112)
1 parent bd9852c commit 72be369

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/@react-spectrum/picker/stories/Picker.stories.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,17 @@ storiesOf('Picker', module)
283283
</Picker>
284284
)
285285
)
286+
.add(
287+
'falsy item key',
288+
() => (
289+
<Picker label="Test" onSelectionChange={action('selectionChange')}>
290+
<Item key="">None</Item>
291+
<Item key="One">One</Item>
292+
<Item key="Two">Two</Item>
293+
<Item key="Three">Three</Item>
294+
</Picker>
295+
)
296+
)
286297
.add(
287298
'no visible label',
288299
() => (

0 commit comments

Comments
 (0)