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

fix(datepicker): stop event bubbling from buttons #5400

Closed

Conversation

wesleycho
Copy link
Contributor

  • Stop event bubbling from clicks in popup

Fix in action here.

This fixes #5347

- Stop event bubbling from clicks in popup

BREAKING CHANGE: This requires $event to be passed in the second
argument of the select function and in the close argument for the popup
template
<button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null)">{{ getText('clear') }}</button>
</span>
<button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close()">{{ getText('close') }}</button>
<span class="btn-group pull-left">
Copy link
Contributor

Choose a reason for hiding this comment

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

formatting tool went awry?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was me fixing the indentation

Copy link
Contributor

Choose a reason for hiding this comment

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

ooooooh. ok. i couldn't see it before. sorry.

@Foxandxss
Copy link
Contributor

LGTM

@wesleycho wesleycho closed this in e283cea Feb 3, 2016
@wesleycho wesleycho deleted the fix/datepicker-propagation branch February 3, 2016 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Popover closes unexpectedly
3 participants