bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Make Auto-Close Dropdowns optional

Open ulilicht opened this issue 12 years ago • 12 comments

Hi,

a DropDown always closes when clicked somewhere on the document. It would be great if this would be optional - for example if i put a complex dialog in a dropdown, i want to close it manually. For example: a calendar widget.

Here you can find a Stackoverflow issue which adresses exactly that: http://stackoverflow.com/questions/23698316/how-to-prevent-an-angular-bootstrap-dropdown-from-closing-unbind-event-which-wa/23723686?noredirect=1#23723686

The corresponding lines in code can be found here: https://github.com/angular-ui/bootstrap/blob/master/src/dropdown/dropdown.js#L12

It would be great to apply line12 only if the user whished for example by an option.

ulilicht avatar May 19 '14 08:05 ulilicht

+1

rzschech avatar Jun 23 '14 14:06 rzschech

+1

ehunter avatar Jul 25 '14 13:07 ehunter

+1

automotua avatar Aug 03 '14 06:08 automotua

+1

JohnLindahlTech avatar Aug 08 '14 10:08 JohnLindahlTech

+1

DaneWiid avatar Aug 08 '14 12:08 DaneWiid

+1

t-boris avatar Aug 09 '14 12:08 t-boris

+1

marcalj avatar Sep 17 '14 16:09 marcalj

+1

Sergey6116 avatar Oct 21 '14 00:10 Sergey6116

+1

madhums avatar Oct 27 '14 11:10 madhums

+1

Rodeoclash avatar Oct 30 '14 02:10 Rodeoclash

This sounds like a capability that could easily abused and cause accessibility issues, but if someone submits a PR with tests, I'll gladly review it.

chrisirhc avatar Nov 03 '14 09:11 chrisirhc

Landed from #3045. This will be in the next release.

wesleycho avatar Mar 31 '15 05:03 wesleycho