Help! Child dropdown menu is 'sticky'

Hi guys,
I have implemented this successfully in my SharePoint 2010 environment.
However, there is one issue I would like to resolve.

When a user clicks on the parent dropdown and selects an option, the dropdown menu disappears, as it should. However, this does not happen for the child drop down. The user must make a selection, and then submit a second click OFF the dropdown for the dropdown
to go away.