Dropdown
: the position
prop is made redundant by popoverProps
#46858
Labels
Dropdown
: the position
prop is made redundant by popoverProps
#46858
What
While taking a look at the recent work done in #45787, I realized that the
position
of the popover for theDropdown
can be set in two different ways:position
prop (which should be soon deprecated in favour ofplacement
, see Popover: refactor all usages of the legacyposition
prop to theplacement
prop #44401)popoverProps.position
propThis situation is not ideal, since the component offers two separate ways to set the popover's position which can create confusion in the user:
popoverProps
overrides the value set via theposition
proppopoverProps.placement
(which is the suggested prop instead ofposition
) doesn't have any effects, sinceposition
is always set from theposition
prop and it will override theplacement
Proposed solution
I suggest we deprecate the
position
prop altogether, and we discourage its usage. We should usepopoverProps.placement
instead to set the popover's position.The text was updated successfully, but these errors were encountered: