-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Labels
SettingsIssues related to managing settings.Issues related to managing settings.package: @woocommerce/componentsissues related to @woocommerce/componentsissues related to @woocommerce/components
Description
Part of #37784
Issue Description:
The position drop of wp.components.Dropdown is deprecated as of WordPress 6.2. popoverProps.placement should be used instead.
DateTimePickerControl should be updated so that it uses popoverProps.placement and doesn't produce warnings in the browser console.
To reproduce
- Enable the block-based product editor
- Go to
Products>Add New - Go to the
Pricingtab - Enter a
List priceandSale price - Enable
Schedule sale - Note the following warning in the browser console.
`position` prop in wp.components.Dropdown is deprecated since version 6.2. Please use `popoverProps.placement` prop instead. Note: Note that the `position` prop will override any values passed through the `popoverProps.placement` prop.
Acceptance criteria
- The warning above is no longer shown when following the above reproduction steps
-
DateTimePickerControlcontinues to function as expected
Metadata
Metadata
Assignees
Labels
SettingsIssues related to managing settings.Issues related to managing settings.package: @woocommerce/componentsissues related to @woocommerce/componentsissues related to @woocommerce/components