File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -558,8 +558,10 @@ export default {
558
558
}
559
559
}
560
560
561
- this .updateFooterList (' @' )
562
- this .updateFooterList (' :' )
561
+ setTimeout (() => {
562
+ this .updateFooterList (' @' )
563
+ this .updateFooterList (' :' )
564
+ }, 60 )
563
565
}),
564
566
50
565
567
)
@@ -709,7 +711,7 @@ export default {
709
711
this .updateShowUsersTag (query)
710
712
}
711
713
} else {
712
- this .resetFooterList ()
714
+ this .resetFooterList (tagChar )
713
715
}
714
716
},
715
717
getCharPosition (tagChar ) {
@@ -774,9 +776,16 @@ export default {
774
776
position + user .username .length + space .length + 1
775
777
this .focusTextarea ()
776
778
},
777
- resetFooterList () {
778
- this .filteredEmojis = []
779
- this .filteredUsersTag = []
779
+ resetFooterList (tagChar = null ) {
780
+ if (tagChar === ' :' ) {
781
+ this .filteredEmojis = []
782
+ } else if (tagChar === ' @' ) {
783
+ this .filteredUsersTag = []
784
+ } else {
785
+ this .filteredEmojis = []
786
+ this .filteredUsersTag = []
787
+ }
788
+
780
789
this .textareaCursorPosition = null
781
790
},
782
791
onMediaLoad () {
You can’t perform that action at this time.
0 commit comments