hide suggestion section when no suggestions exist
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,6 +15,7 @@ export default class SearchViewModel<T> {
|
||||
[this.searchInput],
|
||||
() => this.searchInput.value == "",
|
||||
);
|
||||
hasNoSuggestions: React.State<boolean> = React.createProxyState([this.suggestions], ()=>this.suggestions.value.size == 0);
|
||||
|
||||
// methods
|
||||
search = (searchTerm: string): void => {
|
||||
|
||||
Reference in New Issue
Block a user