arengibook 1.2.316-main → 1.2.317-main
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/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41311,7 +41311,8 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
|
|
|
41311
41311
|
setLoading(true);
|
|
41312
41312
|
|
|
41313
41313
|
// Items déjà chargés (scroll vers le haut ou re-fire) — reset immédiat
|
|
41314
|
-
|
|
41314
|
+
// On utilise -1 pour déclencher le chargement quand on atteint le dernier item chargé
|
|
41315
|
+
if (event.last < loadedOptionsRef.current.length - 1 || !hasMoreRef.current) {
|
|
41315
41316
|
setTimeout(function () {
|
|
41316
41317
|
return setLoading(false);
|
|
41317
41318
|
}, 0);
|