mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Fix: Clear search when hiting cancel
This commit is contained in:
parent
4afa902d0a
commit
24dd888e5b
@ -152,6 +152,8 @@ fun ExpandedSearchView(
|
|||||||
icon = Icons.Rounded.Close,
|
icon = Icons.Rounded.Close,
|
||||||
description = stringResource(id = R.string.cancel),
|
description = stringResource(id = R.string.cancel),
|
||||||
onClick = {
|
onClick = {
|
||||||
|
textFieldValue = TextFieldValue(text = "")
|
||||||
|
focusManager.clearFocus()
|
||||||
onExpanded(false)
|
onExpanded(false)
|
||||||
onClose()
|
onClose()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user