@razorpay/blade 10.13.1 → 10.13.2

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.
@@ -13653,7 +13653,8 @@ var makeInputDisplayValue = function makeInputDisplayValue(selectedIndices, opti
13653
13653
 
13654
13654
  // When one item is selected, we display that item's title in input
13655
13655
  if (selectedIndices.length === 1) {
13656
- return options[selectedIndices[0]].title;
13656
+ var _options$selectedIndi;
13657
+ return (_options$selectedIndi = options[selectedIndices[0]]) === null || _options$selectedIndi === void 0 ? void 0 : _options$selectedIndi.title;
13657
13658
  }
13658
13659
 
13659
13660
  // When more than one item is selected, we display the count of items
@@ -23596,7 +23597,7 @@ var useAutoComplete = function useAutoComplete(_ref) {
23596
23597
  setActiveIndex(firstItemOptionIndex);
23597
23598
  }
23598
23599
  // eslint-disable-next-line react-hooks/exhaustive-deps
23599
- }, [globalFilteredValues.length]);
23600
+ }, [globalFilteredValues.length, options.length]);
23600
23601
 
23601
23602
  // When input is empty or its single select, we want all items to be shown in filter on open of dropdown
23602
23603
  React__default.useEffect(function () {