Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dropdown): remove global document click listener #2518

Conversation

maxokorokov
Copy link
Member

Fixes #900

Copy link
Member

@benouat benouat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my review comment

}

closeFromOutsideEsc() {
if (this.autoClose) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any specific reason you removed completely this check (if (this.autoClose)) ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is checked now when setting handlers in _setCloseHandlers():

https://github.com/ng-bootstrap/ng-bootstrap/pull/2518/files#diff-ed4f415f7194ca32cfe9021c01b9badfR179

@pkozlowski-opensource
Copy link
Member

LGTM! Thnx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants