mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 09:41:02 +00:00
Editor: Fix lag
This commit is contained in:
parent
a8f8933e11
commit
d9f115ba67
1 changed files with 10 additions and 5 deletions
|
@ -591,11 +591,16 @@ extension StatusEditor {
|
|||
}
|
||||
|
||||
private func resetAutoCompletion() {
|
||||
withAnimation {
|
||||
tagsSuggestions = []
|
||||
mentionsSuggestions = []
|
||||
currentSuggestionRange = nil
|
||||
showRecentsTagsInline = false
|
||||
if !tagsSuggestions.isEmpty ||
|
||||
!mentionsSuggestions.isEmpty ||
|
||||
currentSuggestionRange != nil ||
|
||||
showRecentsTagsInline {
|
||||
withAnimation {
|
||||
tagsSuggestions = []
|
||||
mentionsSuggestions = []
|
||||
currentSuggestionRange = nil
|
||||
showRecentsTagsInline = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue