@entur/dropdown 5.1.0 → 5.1.1-beta.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.
@@ -887,7 +887,7 @@ debounceTimeout) {
887
887
  if (itemsIsAFunction) {
888
888
  debouncedFetchItems('');
889
889
  }
890
- }, [itemsIsAFunction]);
890
+ }, [itemsIsAFunction, itemsResolver]);
891
891
  return {
892
892
  items: normalizedItems,
893
893
  loading: itemsIsAFunction ? loading : false,
@@ -1626,7 +1626,6 @@ var isVoiceOverClick = function isVoiceOverClick(clickEvent) {
1626
1626
  var targetElementMiddleY = Math.floor(targetElementRect.y + targetElementRect.height / 2);
1627
1627
  var clickPositionX = clickEvent.clientX;
1628
1628
  var clickPositionY = clickEvent.clientY;
1629
- console.log('targetX:', targetElementMiddleX, 'targetY:', targetElementMiddleY, 'clickX:', clickPositionX, 'clickY:', clickPositionY);
1630
1629
  return Math.abs(targetElementMiddleX - clickPositionX) <= 1 && Math.abs(targetElementMiddleY - clickPositionY) <= 1;
1631
1630
  };
1632
1631
  /* end a11y utils */