This commit is contained in:
Arthur
2026-01-08 17:04:00 -08:00
parent 99d678502f
commit 89af9efd85
3 changed files with 8 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -109,9 +109,11 @@ export class DynamicTomSelect extends TomSelect {
}
});
self.loading = Math.max(self.loading - 1, 0);
if (self.loading === 0) {
self.wrapper.classList.remove(self.settings.loadingClass as string);
if (self.loading > 0) {
self.loading--;
if (self.loading === 0) {
self.wrapper.classList.remove(self.settings.loadingClass as string);
}
}
if (currentValue && !self.items.includes(currentValue as string)) {