dropdownToggle disabled div #1867
Description
At first great work you guys are doing here.
I saw the recent feature request for the dropdown single/multiple select. Actually i've built my own "chosen"-like multiple select. For me that works better fe. when lots of selected options have to be shown. It wasn't too hard to build the directive. Angularjs en ui-bootstrap rock!
I just ran into a small issue.
Instead of an a-tag or a button-tag i put the dropdown-toggle on a div (which contains the selected elements).
ngDisabled on that div puts as expected a disabled="disabled" on it.
But the dropdown kept showing up.
Workarround:
Changing
"if (!elementWasOpen && !element.hasClass('disabled') && !element.prop('disabled'))"
into
"if (!elementWasOpen && !element.hasClass('disabled') && !element.prop('disabled') && !element.attr('disabled'))"
worked for me.
Looks like jquery doesnt like "disabled" to be a possible property of a div. However as attribute it is seen.
Maybe this would be usefull for others too.