Dropdown acts differently data-api vs javascript (errors in javascript)
Created by: vandalizmo
via data-api: works alright
via javascript:
- can't close dropdown clicking again on 'dropdown-toggle' element
- can't focus on form elements inside dropdown - dropdown closes immediatly
update:
adding data-toggle="dropdown"
wont fix anything because in that case toggle element gets both clearingMenus event hooks from data-api and js, so it closes on on clicking again toggle element (good), but closes when clicking in nested form elements (bad).
fiddle: [updated] http://jsfiddle.net/B6sLw/4/