mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: clicking on button label didn't close popup
This commit is contained in:
@@ -11,11 +11,8 @@ export default Ember.Component.extend({
|
|||||||
this.sendAction('hide');
|
this.sendAction('hide');
|
||||||
});
|
});
|
||||||
|
|
||||||
$('html').on(`mouseup.popup-menu-${this.get('elementId')}`, (e) => {
|
$('html').on(`mouseup.popup-menu-${this.get('elementId')}`, () => {
|
||||||
const $target = $(e.target);
|
this.sendAction('hide');
|
||||||
if ($target.is("button") || this.$().has($target).length === 0) {
|
|
||||||
this.sendAction('hide');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user