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.

TypeError: Cannot read property '$apply' of null when dropdown is closed #6225

@theyiwenliu

Description

@theyiwenliu

Bug description:

When dropdown is open and set auto-close to outsideClick, I am expecting the dropdown to close when I click on other elements outside of dropdown, which works for most of the case, except for clicking on "textbox"(input/textarea). It shows Uncaught TypeError: Cannot read property '$apply' of null. I have attached an example in plunker.

Link to minimally-working plunker that reproduces the issue:

https://plnkr.co/edit/YpIV2bw1kUUGs5w2yU9d?p=preview
Steps to reproduce: open dropdown -> click on textbox -> textbox is not focused and receive the error in console

Version of Angular, UIBS, and Bootstrap

Angular:
1.5.8
UIBS:
2.1.3
Bootstrap:
3.3.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions