mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
17 lines
358 B
JavaScript
17 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();
|
|
}
|
|
});
|