fix: hide bottom sheet upon opening search
This commit is contained in:
parent
67f18afc01
commit
b417118e3d
1 changed files with 5 additions and 1 deletions
|
|
@ -172,7 +172,11 @@ fun App() {
|
||||||
Searcher(
|
Searcher(
|
||||||
ptvService = ptvService,
|
ptvService = ptvService,
|
||||||
expanded = searchExpandedState,
|
expanded = searchExpandedState,
|
||||||
onExpandedChange = { searchExpandedState = it },
|
onExpandedChange = {
|
||||||
|
searchExpandedState = it
|
||||||
|
if (it)
|
||||||
|
scope.launch { scaffoldState.bottomSheetState.hide() }
|
||||||
|
},
|
||||||
text = searchTextState,
|
text = searchTextState,
|
||||||
onTextChange = { searchTextState = it },
|
onTextChange = { searchTextState = it },
|
||||||
onRouteChange = { route = it }
|
onRouteChange = { route = it }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue