@afeefa/vue-app 0.0.343 → 0.0.344
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.344
|
package/package.json
CHANGED
|
@@ -369,18 +369,17 @@ export default class ASelect2 extends Mixins(ComponentWidthMixin, UsesPositionSe
|
|
|
369
369
|
// Maßstab ist die GESAMTzahl der ungefilterten Liste (`totalCount`), nicht der
|
|
370
370
|
// aktuelle Such-`count` und nicht `hasMore`: beide fallen während einer Suche
|
|
371
371
|
// (0 Treffer → hasMore false) und flackern beim Reload. `totalCount` bleibt
|
|
372
|
-
// stabil.
|
|
372
|
+
// stabil. Sonderfälle:
|
|
373
|
+
// - Noch nichts geladen (`!loaded`): KEIN Feld — die Items erscheinen ohnehin
|
|
374
|
+
// erst mit der ersten Antwort; das Feld kommt dann (falls nötig) zusammen mit
|
|
375
|
+
// der Liste. Vorher kurz eins zu zeigen, das bei kurzen Listen gleich wieder
|
|
376
|
+
// verschwindet, wäre Flackern.
|
|
373
377
|
// - Schon getippt (`search`): das Feld muss bleiben, sonst lässt sich die Suche
|
|
374
378
|
// nicht mehr ändern/leeren.
|
|
375
|
-
// - Noch nichts geladen (`!loaded`): `totalCount` ist erst nach der ersten Seite
|
|
376
|
-
// bekannt. Bis dahin Feld zeigen, statt es nachträglich aufpoppen zu lassen.
|
|
377
379
|
get showSearchField () {
|
|
378
|
-
if (!this.isDynamic || !this.hasSearch) {
|
|
380
|
+
if (!this.isDynamic || !this.hasSearch || !this.loaded) {
|
|
379
381
|
return false
|
|
380
382
|
}
|
|
381
|
-
if (!this.loaded) {
|
|
382
|
-
return true
|
|
383
|
-
}
|
|
384
383
|
return !!this.search || this.totalCount > this.pageSize
|
|
385
384
|
}
|
|
386
385
|
|