web: refactor search-select and fix placeholder; fix misleading comment

This commit is contained in:
Ken Sternberg 2023-06-13 15:13:31 -07:00 committed by Jens Langhammer
parent e79901441f
commit 0043f1ea6a
No known key found for this signature in database

View file

@ -18,8 +18,8 @@ type Group<T> = [string, T[]];
@customElement("ak-search-select")
export class SearchSelect<T> extends AKElement {
// A function which takes the query above (accepting that it may be empty) and
// returns a new collection of objects.
// A function which takes the query state object (accepting that it may be empty) and returns a
// new collection of objects.
@property({ attribute: false })
fetchObjects!: (query?: string) => Promise<T[]>;