We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831c66f commit 9c6b207Copy full SHA for 9c6b207
elements/pf-search-input/pf-search-input.ts
@@ -222,13 +222,11 @@ export class PfSearchInput extends LitElement {
222
}
223
224
/**
225
- * Single select option value for single select menus,
226
- * or array of select option values for multi select.
+ * Set selected option
227
*/
228
@property({ hasChanged: (a, b) => !arraysAreEquivalent(a, b) })
229
- set selected(selected: PfOption | PfOption[]) {
230
- const list = Array.isArray(selected) ? selected : [selected];
231
- this.#combobox.selected = list;
+ set selected(selected: PfOption) {
+ this.#combobox.selected = [selected];
232
233
234
get selected(): PfOption[] {
0 commit comments