We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e594b00 commit 7170bc8Copy full SHA for 7170bc8
2 files changed
core/pfe-core/controllers/at-focus-controller.ts
@@ -118,6 +118,14 @@ export abstract class ATFocusController<Item extends HTMLElement> {
118
this.itemsContainerElement ??= this.#initContainer();
119
}
120
121
+ /**
122
+ * Refresh items from the getItems option. Call this when the list of items
123
+ * has changed (e.g. when a parent controller sets items).
124
+ */
125
+ refreshItems(): void {
126
+ this.initItems();
127
+ }
128
+
129
hostConnected(): void {
130
this.hostUpdate();
131
core/pfe-core/controllers/combobox-controller.ts
@@ -281,6 +281,7 @@ export class ComboboxController<
281
282
set items(value: Item[]) {
283
this.#lb.items = value;
284
+ this.#fc?.refreshItems?.();
285
286
287
/** Whether the combobox is disabled */
0 commit comments