Dropdown - autoclose on outside click option
See original GitHub issueFeature request
It would be a useful addition to have another autoClose option: onOutsideClick
(or another meaningful name), so we can keep the dropdown open as long as we click somewhere inside it.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:11
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How can I close a dropdown on click outside?
Where close is your function which will be call when user click outside div. It is very elegant way to handle problem described...
Read more >Angular Dropdown Menu Close On Click Outside
As you can see in browser, we can close our dropdown now with click outside. And this directive is fully reusable in any...
Read more >How to avoid dropdown menu to close menu items on ...
Click Inside: · Click Outside: O/P after click outside.
Read more >Bootstrap 4 prevent dropdown close click outside on Codeply
Bootstrap 4 prevent dropdown close click outside Codeply example.
Read more >Hide Dropdown Menu on Click Outside of the Element in ...
You can use the jQuery click() method in combination with the on() method to hide the dropdown menu when the user click outside...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@forrestab enums are not ideal since you would have to expose an enum on a component’s instance. In practice to achieve the following:
You would have to have
CloseEnum
on the component’s instance which is too much pain in practice, IMO. How about the following API:@matthiasscudlik you are right, we are planning to change it. The issue is already tracked via #900