Hi Sudeshna,
My sub-menus are symbols it has some hover animations, I can see the your code is working perfectly with your sub-menu, But I have to try with my file.
Let me check with that and revert back to you.
I really appreciate your time
Thank you
Rajeev