Fix: Clear search when hiting cancel

This commit is contained in:
machiav3lli 2022-07-01 00:49:59 +02:00
parent 4afa902d0a
commit 24dd888e5b

View File

@ -152,6 +152,8 @@ fun ExpandedSearchView(
icon = Icons.Rounded.Close,
description = stringResource(id = R.string.cancel),
onClick = {
textFieldValue = TextFieldValue(text = "")
focusManager.clearFocus()
onExpanded(false)
onClose()
}