pi-model-sort 0.1.2 → 0.1.3
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.
- package/model-sort.ts +4 -0
- package/package.json +1 -1
package/model-sort.ts
CHANGED
|
@@ -168,6 +168,10 @@ function patchFilterModels(getLastUsed: () => Record<string, number>): void {
|
|
|
168
168
|
this.selectedIndex = newIndex;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
+
|
|
172
|
+
// Re-render — the original filterModels already called updateList() before
|
|
173
|
+
// we re-sorted, so the UI is stale until the next input event.
|
|
174
|
+
(this.updateList as () => void)();
|
|
171
175
|
};
|
|
172
176
|
}
|
|
173
177
|
|