modelbutton: Close popover menu submenus consistently
In a nested popover menu, the popover submenus are only closed when pointing to another item that also has a submenu. If the pointer is hovering over an item without a submenu close any opened submenus.
Current behavior can be reproduced on page 2 of the widget factory