[2.3] - Prevent browsing when clicking a "container" top menu

After #11509 clicking on a top menu container causes navigation/browsing.
This PR just prevent that behavior