mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix room list search bar focus glitches (#2112)
* Fixes #2112 - Room list search bar focus glitches * Address PR comments
This commit is contained in:
@@ -100,6 +100,11 @@ struct HomeScreenViewState: BindableState {
|
||||
HomeScreenRoom.placeholder()
|
||||
}
|
||||
}
|
||||
|
||||
// Used to hide all the rooms when the search field is focused and the query is empty
|
||||
var shouldHideRoomList: Bool {
|
||||
bindings.isSearchFieldFocused && bindings.searchQuery.isEmpty
|
||||
}
|
||||
}
|
||||
|
||||
struct HomeScreenViewStateBindings {
|
||||
|
||||
Reference in New Issue
Block a user