Merge branch 'release/5.27.0'

This commit is contained in:
Igor Solomennikov 2022-01-25 16:24:19 -08:00
commit 127aa13419

View File

@ -138,8 +138,9 @@ extension EmojiPickerSheet: EmojiPickerSectionToolbarDelegate {
searchBar.text = nil
collectionView.searchText = nil
// Collection view needs a moment to reload
DispatchQueue.main.async {
// Collection view needs a moment to reload.
// Do empty batch of updates to postpone scroll until collection view has updated.
collectionView.performBatchUpdates(nil) { _ in
self.collectionView.scrollToSectionHeader(section, animated: false)
}
} else {