Don't show dropdown when empty.
This commit is contained in:
@@ -79,7 +79,7 @@ fun TypeaheadTextField(
|
||||
colors = colors
|
||||
)
|
||||
ExposedDropdownMenu(
|
||||
expanded = isFocused,
|
||||
expanded = isFocused && filtered.isNotEmpty(),
|
||||
modifier = Modifier
|
||||
.width(with(LocalDensity.current){dropDownWidth.toDp()}),
|
||||
onDismissRequest = { }
|
||||
|
||||
Reference in New Issue
Block a user