mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
0f8ae45bc4
Closes #4138 - Removed JS animation to close in favour of CSS animations
13 lines
334 B
JavaScript
13 lines
334 B
JavaScript
/*
|
|
Popovers and their buttons are evented and do not propagate clicks.
|
|
*/
|
|
var PopoverMixin = Ember.Mixin.create(Ember.Evented, {
|
|
classNameBindings: ['isOpen:open:closed'],
|
|
isOpen: false,
|
|
click: function (event) {
|
|
this._super(event);
|
|
return event.stopPropagation();
|
|
}
|
|
});
|
|
|
|
export default PopoverMixin; |