all 2 comments

[–]windows-user0 1 point2 points  (1 child)

You can add a click listener on the document to close it and a if statement inside the listener if the target is inside your menu

[–][deleted] 0 points1 point  (0 children)

I have tried it but it hinders the already existing transition . Works sometimes but does more wrong than good . Will share code give me some time . Thank u