mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
UI improvements
This commit is contained in:
@@ -288,6 +288,7 @@ final class EmojiSearchSearchBarComponent: Component {
|
||||
component.searchTermUpdated(group.identifiers.joined(separator: ""))
|
||||
} else {
|
||||
component.searchTermUpdated(nil)
|
||||
self.scrollView.setContentOffset(CGPoint(), animated: true)
|
||||
}
|
||||
|
||||
break
|
||||
@@ -301,6 +302,7 @@ final class EmojiSearchSearchBarComponent: Component {
|
||||
if self.selectedItem != nil {
|
||||
self.selectedItem = nil
|
||||
self.state?.updated(transition: .immediate)
|
||||
self.scrollView.setContentOffset(CGPoint(), animated: true)
|
||||
if dispatchEvent {
|
||||
self.component?.searchTermUpdated(nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user