mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-09-01 15:43:47 +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() {
|
private func resetAutoCompletion() {
|
||||||
withAnimation {
|
if !tagsSuggestions.isEmpty ||
|
||||||
tagsSuggestions = []
|
!mentionsSuggestions.isEmpty ||
|
||||||
mentionsSuggestions = []
|
currentSuggestionRange != nil ||
|
||||||
currentSuggestionRange = nil
|
showRecentsTagsInline {
|
||||||
showRecentsTagsInline = false
|
withAnimation {
|
||||||
|
tagsSuggestions = []
|
||||||
|
mentionsSuggestions = []
|
||||||
|
currentSuggestionRange = nil
|
||||||
|
showRecentsTagsInline = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue