mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
FIX: since Ember 3 interceptClick was not working on buffered links (#6898)
This commit is contained in:
parent
ee7ab3e2ec
commit
b20ad9d684
|
@ -75,7 +75,14 @@ export default Ember.Component.extend({
|
|||
|
||||
this.$(".drop a").on("click", () => {
|
||||
this.$(".drop").hide();
|
||||
this.set("expanded", false);
|
||||
|
||||
Ember.run.next(() => {
|
||||
if (!this.element || this.isDestroying || this.isDestroyed) {
|
||||
return;
|
||||
}
|
||||
this.set("expanded", false);
|
||||
});
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user