mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
reset search term after search bar is dismissed
This commit is contained in:
parent
d9b0dea0a9
commit
ece9c6b9d5
1 changed files with 5 additions and 2 deletions
|
|
@ -49,11 +49,14 @@ fun SearchBar(
|
|||
Text(
|
||||
text = "Cancel",
|
||||
modifier = Modifier
|
||||
.clickable { showSearchField = false }
|
||||
.clickable {
|
||||
onSearchTextChanged("")
|
||||
showSearchField = false
|
||||
}
|
||||
.padding(horizontal = 6.dp)
|
||||
)
|
||||
} else {
|
||||
FilledIconButton(onClick = { showSearchField = true }) {
|
||||
IconButton(onClick = { showSearchField = true }) {
|
||||
Icon(
|
||||
imageVector = Icons.Filled.Search,
|
||||
contentDescription = null
|
||||
|
|
|
|||
Loading…
Reference in a new issue