@elementor/editor-controls 3.35.0-417 → 3.35.0-418

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.mjs CHANGED
@@ -2961,9 +2961,8 @@ var ItemList = ({
2961
2961
  }
2962
2962
  }) => {
2963
2963
  const selectedItemFound = itemListItems.find((item) => item.value === selectedItem);
2964
- const debouncedVirtualizeChange = useDebounce(({ getVirtualIndexes }) => {
2965
- getVirtualIndexes().forEach((index) => {
2966
- const item = itemListItems[index];
2964
+ const debouncedVirtualizeChange = useDebounce((visibleItems) => {
2965
+ visibleItems.forEach((item) => {
2967
2966
  if (item && item.type === "item") {
2968
2967
  onDebounce(item.value);
2969
2968
  }