Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Popover: Expose refresh method from Dropdown component #8906
This PR exposes the
When the contents of the Dropdown component change height due to user interaction inside the Dropdown, the Popover element will not re-calculate the height of the content and the scrollable areas are not accessible.
This code allows an app using Dropdown to call the Popover's
How has this been tested?
Rendering an instance of the Dropdown component, I can log to the console
Corresponding wc-admin issue, woocommerce/wc-admin#252
I'm not sure why some borders look weird in this gif, but you can see the dropdown panel extend beyond the screen after switching to the Custom tab. The PR allows the dropdown to recalculate height and allow the content to be scrollable
Types of changes
Bug fix (non-breaking change which fixes an issue) : This PR exposes a class method that was already there.