mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 04:53:37 +08:00
FIX: makes sure we don’t track when clicking on recent emojis
This commit is contained in:
parent
c906bd3f22
commit
1ce1953ee1
|
@ -259,7 +259,10 @@ export default Ember.Component.extend({
|
||||||
const handler = (event) => {
|
const handler = (event) => {
|
||||||
const code = this._codeForEmojiLink($(event.currentTarget));
|
const code = this._codeForEmojiLink($(event.currentTarget));
|
||||||
|
|
||||||
this._trackEmojiUsage(code);
|
if($(event.currentTarget).parents(".section[data-section='recent']").length === 0) {
|
||||||
|
this._trackEmojiUsage(code);
|
||||||
|
}
|
||||||
|
|
||||||
this.sendAction("emojiSelected", code);
|
this.sendAction("emojiSelected", code);
|
||||||
|
|
||||||
if(this.$(".emoji-picker-modal").hasClass("fadeIn")) {
|
if(this.$(".emoji-picker-modal").hasClass("fadeIn")) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user