How to make the menu is clickable outside of it

Hafiz Murad Posted in Theme Development 9 years ago

Clickable

As the pic above how to make it is clickable on the green box to close a tab. Right now we can only close a tab by clicking the icon of it as red box. For example we click the arrow button, then to close it we have to tap the arrow button again. If we click any other place than that arrow, nothing happen. How to make it clickable on any other place and it will close the tab.

Replies
Burmese Hafiz Murad Replied 9 years ago

i know it is a simple to do.. but im lack of knowledge.. :( can u help me please.. its not just the dropdown menu.. there are 4 .. notification, messages ,friends request and dropdown arrow. want to make them dismiss when click anywhere. The exisitng one we have to click the same button to dismiss it.

Indonesian Arsalan Shah Replied 9 years ago

You have to write a JS function that close dropdown menu when clicking outside of it.