anutron/mootools-bootstrap — Issue #3: form in dropdown issue
Author: stutteringp0et
Created: 2011-10-09 17:48:41+00:00
State: open

This is a duplicate of the bootstrap issue described in this link.

https://github.com/twitter/bootstrap/issues/250

Basically, when a form is present as a dropdown menu child, upon focusing any of the input elements, the dropdown retracts.

The JQuery fix is:
$('.dropdown input').bind('click', function (e) {
e.stopPropagation()
})

although MT has an event stopPropagation method, I tried modifying this JQ code to MT but it doesn't achieve the same result.

$$('.dropdown input').each(function(el){
el.addEvent('click',function(event){
event.stopPropagation();
});
});

I'm no expert, so maybe I'm going about it all wrong.