summaryrefslogtreecommitdiff
path: root/src/client/os.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2021-02-28 02:22:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2021-02-28 02:22:53 +0900
commit7674a62d40b7d4eec82387a1157e48da10c2f312 (patch)
tree54b0388a78b174aaa71592dc5e987bb46f9b88b8 /src/client/os.ts
parentResolve #7270 (diff)
downloadmisskey-7674a62d40b7d4eec82387a1157e48da10c2f312.tar.gz
misskey-7674a62d40b7d4eec82387a1157e48da10c2f312.tar.bz2
misskey-7674a62d40b7d4eec82387a1157e48da10c2f312.zip
chore: improve reaction picker behaviour
Diffstat (limited to 'src/client/os.ts')
-rw-r--r--src/client/os.ts5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/client/os.ts b/src/client/os.ts
index 9fafb6db43..e97c2d7ba0 100644
--- a/src/client/os.ts
+++ b/src/client/os.ts
@@ -360,16 +360,12 @@ export async function openEmojiPicker(src?: HTMLElement, opts, initialTextarea:
let reactionPicker = null;
export async function pickReaction(src: HTMLElement, chosen, closed) {
if (reactionPicker) {
- if (reactionPicker.opening) return;
-
- reactionPicker.opening = true;
reactionPicker.src.value = src;
reactionPicker.manualShowing.value = true;
reactionPicker.chosen = chosen;
reactionPicker.closed = closed;
} else {
reactionPicker = {
- opening: true,
src: ref(src),
manualShowing: ref(true),
chosen, closed
@@ -388,7 +384,6 @@ export async function pickReaction(src: HTMLElement, chosen, closed) {
closed: () => {
reactionPicker.src.value = null;
reactionPicker.closed();
- reactionPicker.opening = false;
}
});
}