Skip to content

Wildcard: [MenuButton] Fix reach menu position prop drilling warning

Administrator requested to merge vk/fix-position-prop-passing-warning into main

Created by: vovakulikov

This PR just spreads a special popover prop (popoverContentPosition) and aligns Popover position prop with it.

Prior to this PR, we had a warning message from React about passing popoverContentPosition to the real jsx Dom element.

Screenshot 2022-02-15 at 14 57 55

Test plan

  • Open storybook MenuButton stories in dev mode
  • Open the menu by clicking on the button
  • See no warnings in browser console

Merge request reports

Loading