carbon-react 116.0.0 → 116.0.1

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.
@@ -296,6 +296,11 @@ const SelectList = /*#__PURE__*/React.forwardRef(({
296
296
  }
297
297
 
298
298
  const indexOfMatch = getIndexOfMatch(highlightedValue);
299
+
300
+ if (indexOfMatch === -1) {
301
+ return;
302
+ }
303
+
299
304
  setCurrentOptionsListIndex(indexOfMatch);
300
305
  virtualizer.scrollToIndex(indexOfMatch, SCROLL_OPTIONS); // TODO: is there a better way than calling handleListScroll manually?
301
306
 
@@ -329,6 +329,11 @@ const SelectList = /*#__PURE__*/_react.default.forwardRef(({
329
329
  }
330
330
 
331
331
  const indexOfMatch = getIndexOfMatch(highlightedValue);
332
+
333
+ if (indexOfMatch === -1) {
334
+ return;
335
+ }
336
+
332
337
  setCurrentOptionsListIndex(indexOfMatch);
333
338
  virtualizer.scrollToIndex(indexOfMatch, SCROLL_OPTIONS); // TODO: is there a better way than calling handleListScroll manually?
334
339
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "116.0.0",
3
+ "version": "116.0.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",