Revert "Issue #2370483: Add in a bainaid for the selector not working in menu.js due to panels"

This reverts commit b022a3872a2c947203cf58bbe592c328c322f346.