@lumx/react 4.19.1-alpha.0 → 4.19.1-next.0
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/index.js +10 -3
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -6421,15 +6421,21 @@ function setupListbox(handle, signal, notify, options) {
|
|
|
6421
6421
|
*/
|
|
6422
6422
|
function debounceMicrotask(fn) {
|
|
6423
6423
|
let running = false;
|
|
6424
|
-
|
|
6424
|
+
const debounced = () => {
|
|
6425
6425
|
if (!running) {
|
|
6426
6426
|
running = true;
|
|
6427
6427
|
queueMicrotask(() => {
|
|
6428
|
-
|
|
6429
|
-
|
|
6428
|
+
if (running) {
|
|
6429
|
+
running = false;
|
|
6430
|
+
fn();
|
|
6431
|
+
}
|
|
6430
6432
|
});
|
|
6431
6433
|
}
|
|
6432
6434
|
};
|
|
6435
|
+
debounced.cancel = () => {
|
|
6436
|
+
running = false;
|
|
6437
|
+
};
|
|
6438
|
+
return debounced;
|
|
6433
6439
|
}
|
|
6434
6440
|
|
|
6435
6441
|
/** Options for configuring the shared combobox behavior. */
|
|
@@ -6936,6 +6942,7 @@ function setupCombobox(callbacks, options, onTriggerAttach) {
|
|
|
6936
6942
|
optionRegistrations.clear();
|
|
6937
6943
|
sectionRegistrations.clear();
|
|
6938
6944
|
skeletonCount = 0;
|
|
6945
|
+
notifyVisibilityChange.cancel();
|
|
6939
6946
|
clearTimeout(loadingTimer);
|
|
6940
6947
|
announcementSent = false;
|
|
6941
6948
|
// Clear all subscribers
|