Avoid dropdown closing
See original GitHub issueHow to accomplish it with the new version? Before 0.10 I did:
$(element).data("ttView").dropdownView.close = function() { };
$(element).parent().click(function(e) {
e.stopPropagation();
});
$('body').click(function() {
$(element).typeahead('val', '');
});
But now it doesn’t work.
Thanks fot the replies
Issue Analytics
- State:
- Created 10 years ago
- Comments:14 (2 by maintainers)
Top Results From Across the Web
Avoid dropdown menu close on click inside - Stack Overflow
By default, the dropdown menu is closed when clicking inside or outside the dropdown menu. You can use the autoClose option to change...
Read more >How to avoid dropdown menu to close menu items on clicking ...
How to avoid dropdown menu to close menu items on clicking inside ? · Click Inside: · Click Outside: O/P after click outside....
Read more >Stop dropdown menu from closing while debugging CSS
To stop the dropdown menu from closing: Set a break point on the parent node of the dropdown menu. 2. Click on the...
Read more >Avoid dropdown menu close on click inside - Intellipaat
To avoid this, I can easily attach a click event handler on the dropdown menu and simply add the famous event.stopPropagation(). <ul class="nav ......
Read more >Bootstrap 4 prevent dropdown close click outside on Codeply
Bootstrap 4 prevent dropdown close click outside Codeply example.
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
@worleydl For whatever reason, I couldn’t get that to work. However, this did the trick for me:
.tt-menu {display: block !important;}
Thanks again!@jdrorrer I’m using an tag for my row template. Setting up a click handler at that level and stopping propagation prevents the dropdown from being closed.