-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Props incorrectly documented for FocalPointPicker #16056
Copy link
Copy link
Closed
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Developer DocumentationDocumentation for developersDocumentation for developers
Metadata
Metadata
Assignees
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Developer DocumentationDocumentation for developersDocumentation for developers
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
The docs for
components/focal-point-pickerstate thatdimensionsis both a property, and required.It appears that that prop was replaced with an internal function to get the dimensions from the DOM itself.
This should probably be removed to avoid confusion.
The relevant portion of the outdated docs:
gutenberg/packages/components/src/focal-point-picker/README.md
Lines 52 to 56 in a57202e
The relevant portion of the code:
gutenberg/packages/components/src/focal-point-picker/index.js
Lines 57 to 63 in a57202e