By default the sub menus should be reset when an item is clicked and activated (this is controlled via the hideOnClick: true
option). Not sure why you might be having troubles with this. Could you please post some kind of demo URL? Or are you having the issue just in some specific browser?
Happy Holidays!