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): change to contains #810

Closed

Conversation

wesleycho
Copy link
Member

  • Change to check if event target is contained in toggle to catch all child element clicks

This should fix #803.

- Change to check if event target is contained in toggle to catch all child element clicks
Copy link
Member

@maxokorokov maxokorokov left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -190,6 +190,30 @@ describe('ngb-dropdown-toggle', () => {
expect(buttonEl.getAttribute('aria-expanded')).toBe('false');
});

it('should toggle dropdown on click of child of toggle', () => {
Copy link
Member

Choose a reason for hiding this comment

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

phrasing confused me a little when I first read it, but can't come up with a better one :)

@pkozlowski-opensource
Copy link
Member

LGTM. Make sure that you add reference to the issue being closed in the commit message while merging.

@wesleycho wesleycho closed this in fdf8d4b Sep 29, 2016
@wesleycho wesleycho deleted the fix/dropdown-contains branch September 29, 2016 12:42
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.

ngbDropdownToggle double triggers on child element
3 participants