aboutsummaryrefslogtreecommitdiff
path: root/src/components/emoji_input/emoji_input.vue
diff options
context:
space:
mode:
authorTusooa Zhu <tusooa@kazv.moe>2021-10-08 15:09:24 -0400
committerTusooa Zhu <tusooa@kazv.moe>2022-09-18 13:19:52 -0400
commit06a636db3732ce2808c54d3b74eb4aabd866dbf6 (patch)
treee3d52baf059a838547aa127617fd16353ac5c357 /src/components/emoji_input/emoji_input.vue
parent9aeffd7634e049123d3ffc8addf9c223652b0bbb (diff)
Lazy-load emoji picker in post form
When clicking the reply button, we used to load the whole emoji picker. This causes a considerable delay even if the user is not going to use the emoji picker. Now the content of the emoji picker is loaded only after the user has explicitly opened the emoji picker. Ref: grouped-emoji-picker
Diffstat (limited to 'src/components/emoji_input/emoji_input.vue')
-rw-r--r--src/components/emoji_input/emoji_input.vue1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/emoji_input/emoji_input.vue b/src/components/emoji_input/emoji_input.vue
index 81b81913..eedde9aa 100644
--- a/src/components/emoji_input/emoji_input.vue
+++ b/src/components/emoji_input/emoji_input.vue
@@ -19,6 +19,7 @@
v-if="enableEmojiPicker"
ref="picker"
:class="{ hide: !showPicker }"
+ :showing="showPicker"
:enable-sticker-picker="enableStickerPicker"
class="emoji-picker-panel"
@emoji="insert"