@elementor/editor-controls 3.35.0-416 → 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.js CHANGED
@@ -3023,9 +3023,8 @@ var ItemList = ({
3023
3023
  }
3024
3024
  }) => {
3025
3025
  const selectedItemFound = itemListItems.find((item) => item.value === selectedItem);
3026
- const debouncedVirtualizeChange = useDebounce(({ getVirtualIndexes }) => {
3027
- getVirtualIndexes().forEach((index) => {
3028
- const item = itemListItems[index];
3026
+ const debouncedVirtualizeChange = useDebounce((visibleItems) => {
3027
+ visibleItems.forEach((item) => {
3029
3028
  if (item && item.type === "item") {
3030
3029
  onDebounce(item.value);
3031
3030
  }