question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid dropdown closing

See original GitHub issue

How 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:closed
  • Created 10 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jdrorrercommented, Jun 8, 2015

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found