0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/client/app/mixins/dropdown-mixin.js

18 lines
342 B
JavaScript
Raw Normal View History

2015-02-12 21:22:32 -07:00
import Ember from 'ember';
const {Evented, Mixin} = Ember;
/*
2014-09-28 16:39:25 +01:00
Dropdowns and their buttons are evented and do not propagate clicks.
*/
export default Mixin.create(Evented, {
classNameBindings: ['isOpen:open:closed'],
isOpen: false,
click(event) {
this._super(event);
return event.stopPropagation();
}
});