Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MediaUpload README value prop description #18039

Merged
merged 1 commit into from
Oct 21, 2019
Merged
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
6 changes: 3 additions & 3 deletions packages/block-editor/src/components/media-upload/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function MyMediaUploader() {
<MediaUpload
onSelect={ ( media ) => console.log( 'selected ' + media.length ) }
allowedTypes={ ALLOWED_MEDIA_TYPES }
value={ media }
value={ mediaId }
render={ ( { open } ) => (
<Button onClick={ open }>
Open Media Library
Expand Down Expand Up @@ -76,9 +76,9 @@ Whether to allow multiple selections or not.

### value

An object or an array of objects that contain media ID (`id` property) to be selected by default when opening the media library.
Media ID (or media IDs if multiple is true) to be selected by default when opening the media library.

- Type: `Object|Array`
- Type: `Number|Array`
- Required: No
- Platform: Web

Expand Down