File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,7 @@ export default {
244
244
imageHover: false ,
245
245
messageHover: false ,
246
246
optionsOpened: false ,
247
+ optionsClosing: false ,
247
248
menuOptionsTop: 0 ,
248
249
messageReaction: ' ' ,
249
250
newMessage: {},
@@ -398,8 +399,9 @@ export default {
398
399
image .addEventListener (' load' , () => (this .imageLoading = false ))
399
400
},
400
401
openOptions () {
401
- this . optionsOpened = ! this .optionsOpened
402
+ if ( this .optionsClosing ) return
402
403
404
+ this .optionsOpened = ! this .optionsOpened
403
405
if (! this .optionsOpened ) return
404
406
405
407
this .$emit (' hideOptions' , false )
@@ -427,6 +429,9 @@ export default {
427
429
},
428
430
closeOptions () {
429
431
this .optionsOpened = false
432
+ this .optionsClosing = true
433
+ setTimeout (() => (this .optionsClosing = false ), 100 )
434
+
430
435
if (this .hoverMessageId !== this .message ._id ) this .messageHover = false
431
436
},
432
437
openEmoji () {
You can’t perform that action at this time.
0 commit comments