mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
17 lines
367 B
JavaScript
17 lines
367 B
JavaScript
import Ember from 'ember';
|
|
/*
|
|
Dropdowns and their buttons are evented and do not propagate clicks.
|
|
*/
|
|
var DropdownMixin = Ember.Mixin.create(Ember.Evented, {
|
|
classNameBindings: ['isOpen:open:closed'],
|
|
isOpen: false,
|
|
|
|
click: function (event) {
|
|
this._super(event);
|
|
|
|
return event.stopPropagation();
|
|
}
|
|
});
|
|
|
|
export default DropdownMixin;
|