Skip to content

Commit

Permalink
Close drop-down menu on tap off of it (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
thereallukesimpson authored Apr 20, 2024
2 parents f6ed8cd + eca9ef1 commit 86edc2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fun BenchScreen(
)
}

DropdownMenu(expanded = showDropDownMenu.value, onDismissRequest = {}) {
DropdownMenu(expanded = showDropDownMenu.value, onDismissRequest = { showDropDownMenu.value = false }) {
DropdownMenuItem(
text = { Text(text = stringResource(id = R.string.clear_bench)) },
onClick = {
Expand Down

0 comments on commit 86edc2f

Please sign in to comment.