To make it possible to render the menu in a portal while keeping
refs.menu on the actual menu element, so that scrolling items into
view keeps working.
Test plan: Added unit test; verified that this works with a portal in an
actual production application.
To make it possible to render the menu in a portal while keeping
refs.menu
on the actual menu element, so that scrolling items into view keeps working.Test plan: Added unit test; verified that this works with a portal in an actual production application.