mirror of
https://github.com/discourse/discourse.git
synced 2025-04-09 20:20:49 +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 a").on("click", () => {
|
||||||
this.$(".drop").hide();
|
this.$(".drop").hide();
|
||||||
|
|
||||||
|
Ember.run.next(() => {
|
||||||
|
if (!this.element || this.isDestroying || this.isDestroyed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.set("expanded", false);
|
this.set("expanded", false);
|
||||||
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user