2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: infinite rebinding when filtering emojis

This commit is contained in:
Joffrey JAFFEUX 2017-07-19 22:02:17 +02:00
parent d1f2b981b5
commit d238de87a4

View file

@ -266,7 +266,7 @@ export default Ember.Component.extend({
$this.on('touchmove', () => $this.off('touchend') );
});
} else {
$emojisContainer.on("click", "a", e => handler.bind(this)(e) );
$emojisContainer.off("click").on("click", "a", e => handler.bind(this)(e) );
}
},