Skip to content

Commit 78ef25c

Browse files
authored
chore: Remove S2 Picker deprecated props from storybook (#8946)
1 parent 1efb0d5 commit 78ef25c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.storybook-s2/docs/Migrating.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ export function Migrating() {
300300
<li className={style({font: 'body', marginY: 8})}>Remove <Code>validationState="valid"</Code> (it is no longer supported in Spectrum 2)</li>
301301
<li className={style({font: 'body', marginY: 8})}>Update <Code>Item</Code> to be a <Code>PickerItem</Code></li>
302302
<li className={style({font: 'body', marginY: 8})}>Change <Code>isLoading</Code> to <Code>loadingState</Code> and provide the appropriate loading state.</li>
303+
<li className={style({font: 'body', marginY: 8})}><Code>defaultSelectedKey</Code> and <Code>selectedKey</Code> have been deprecated in favor of <Code>defaultValue</Code> and <Code>value</Code> respectively. See the <Link href="?path=/docs/picker--docs">props table</Link> for the new accepted types.</li>
303304
</ul>
304305

305306
<H3>ProgressBar</H3>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ const meta: Meta<typeof Picker<any>> = {
4848
description: {control: {type: 'text'}},
4949
errorMessage: {control: {type: 'text'}},
5050
children: {table: {disable: true}},
51-
contextualHelp: {table: {disable: true}}
51+
contextualHelp: {table: {disable: true}},
52+
defaultSelectedKey: {table: {disable: true}},
53+
selectedKey: {table: {disable: true}}
5254
},
5355
args: {...getActionArgs(events)},
5456
title: 'Picker'

0 commit comments

Comments
 (0)