Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Make Auto-Close Dropdowns optional #2218

Closed

Description

@ulilicht

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.

Activity

  1. rzschech commented on Jun 23, 2014

    @rzschech

    +1

  2. ehunter commented on Jul 25, 2014

    @ehunter

    +1

  3. automotua commented on Aug 3, 2014

    @automotua

    +1

  4. JohnLindahlTech commented on Aug 8, 2014

    @JohnLindahlTech

    +1

  5. DaneWiid commented on Aug 8, 2014

    @DaneWiid

    +1

  6. t-boris commented on Aug 9, 2014

    @t-boris

    +1

  7. marcalj commented on Sep 17, 2014

    @marcalj

    +1

  8. Sergey6116 commented on Oct 21, 2014

    @Sergey6116

    +1

  9. madhums commented on Oct 27, 2014

    @madhums

    +1

  10. Rodeoclash commented on Oct 30, 2014

    @Rodeoclash

    +1

  11. chrisirhc commented on Nov 3, 2014

    @chrisirhc
    Contributor

    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.

  12. 2 remaining items

  13. added a commit that references this issue on Jul 9, 2015
    0ea9054
  14. added 13 commits that reference this issue on Jul 16, 2015
    459edb8
    8e70077
    7e0661d
    03d0fd7
    3ff0da0
    b5960ee
    796cd4e
    b1448fb
    2085d48
    50db013
    2f118c2
    c489c6d
    3463e05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions