I looked at the bootstrap code for dropdown.js in github repo and would like to know what do they use to handle click outside/elsewhere functionality ?
If anyone can post an answer with a diagram for understanding, that would be very helpful..
I looked at the bootstrap code for dropdown.js in github repo and would like to know what do they use to handle click outside/elsewhere functionality ?
If anyone can post an answer with a diagram for understanding, that would be very helpful..
In the current version of dropdown.js, when the dropdown is opened, toggle() is executed and they add a backdrop <div> on the page that covers the entire screen behind it. The new div gets a click event that calls clearMenus().