-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix(datepicker): Fix destroy event for popup #5274
Conversation
This LGTM, but since I made the original suggestion, someone else needs to sign off. |
<ul class="uib-datepicker-popup dropdown-menu" dropdown-nested ng-if="isOpen" ng-style="{top: position.top+'px', left: position.left+'px'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()"> | ||
<li ng-transclude></li> | ||
<li ng-if="showButtonBar" class="uib-button-bar"> | ||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix indent
@icfantv, spaces should be all set. Sorry about that. All lines have changed because indentation was wrong before this fix. |
Ok, please walk me through how wrapping in a |
Just leaving for posterity, wrapping it in a |
Thanks for clearing that up wesleycho, our code broke when updating deps due to a missing |
Sorry about that, I should have marked this as a breaking change technically. |
@wesleycho do we need to update the changelog? |
Technically, we probably should. |
@jonasem, make sure you use the backtick characters (or escape the angle brackets with a backslash) around any code that could be interpreted by the editor as an actual DOM event. This is why your |
Thanks :-) |
Closes #5058
Plunker with fix
Click destroy button to see popup go away on first input example.
The div keeps the reference to the element correct because it isn't added and removed to the dom as a clone due to ng-if