@threadlabs/looma 0.10.6 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -139,7 +139,8 @@ export default function controller(host) {
|
|
|
139
139
|
// When nothing matches what was typed, the offer to create it is the only choice, so it is
|
|
140
140
|
// the one Enter makes, and it is highlighted as such.
|
|
141
141
|
if (query && !host.state.rows.some((row) => !row.disabled) && canCreate()) host.state.active = host.state.rows.length;
|
|
142
|
-
|
|
142
|
+
// Options in their declared shape: a row's `selected` flag is the list's own view state.
|
|
143
|
+
host.dispatch("options-change", host.state.rows.map(asItem));
|
|
143
144
|
};
|
|
144
145
|
applyOptions(current.options);
|
|
145
146
|
};
|