mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
16 lines
358 B
JavaScript
16 lines
358 B
JavaScript
import Mixin from 'ember-metal/mixin';
|
|
import Evented from 'ember-evented';
|
|
|
|
/*
|
|
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();
|
|
}
|
|
});
|