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

Click event not triggered on document #60

Open
bluecollarcoder opened this issue Apr 7, 2016 · 0 comments
Open

Click event not triggered on document #60

bluecollarcoder opened this issue Apr 7, 2016 · 0 comments

Comments

@bluecollarcoder
Copy link

I am using this plugin in a project:

<select
  selectpicker="selectpicker"
  data-none-selected-text="Select"
  ng-model="..."
  ng-options="..."
  name="..."
  required="required"
  class="form-control"
></select>

I have listeners in the directive listening for click events:

angular.element($document[ 0 ].body).bind('click', function(event) {
  console.log('CLICK');
});
$document.on('click', function (e) {
  console.log('CLICK');
});

When the selectpicker control is clicked, the first click handler gets triggered, but the second does not. It seems that the click event never propagates to the document.

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

No branches or pull requests

1 participant