ab-ui-library 1.35.5 → 1.35.6
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../../../defineProperty-025eba50.js';
|
|
2
2
|
import { _ as _slicedToArray } from '../../../slicedToArray-609eeb34.js';
|
|
3
|
-
import React, { useRef, useState, useMemo, useCallback, useEffect, useId } from 'react';
|
|
3
|
+
import React, { useRef, useState, useMemo, useCallback, useEffect, useId, Fragment } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { useGetElemSizes } from '../../../hooks/useGetElemSizes.js';
|
|
6
6
|
import { useGetElemPositions } from '../../../hooks/useGetElemPositions.js';
|
|
@@ -321,8 +321,9 @@ var Select = function Select(props) {
|
|
|
321
321
|
className: "content-top__label"
|
|
322
322
|
}, innerHelperText)) : null, filteredData.map(function (item, i) {
|
|
323
323
|
var isSelected = item.value === currentSelection;
|
|
324
|
-
return /*#__PURE__*/React.createElement(
|
|
325
|
-
key: item.value
|
|
324
|
+
return /*#__PURE__*/React.createElement(Fragment, {
|
|
325
|
+
key: item.value
|
|
326
|
+
}, renderOptions ? renderOptions({
|
|
326
327
|
onClick: clickHandler(isSelected),
|
|
327
328
|
data: item,
|
|
328
329
|
index: i,
|
|
@@ -331,7 +332,6 @@ var Select = function Select(props) {
|
|
|
331
332
|
}) : /*#__PURE__*/React.createElement(OptionItem, {
|
|
332
333
|
tooltipAddons: tooltipAddons,
|
|
333
334
|
data: item,
|
|
334
|
-
key: item.value,
|
|
335
335
|
onClick: clickHandler(isSelected),
|
|
336
336
|
optionLeftIcon: item === null || item === void 0 ? void 0 : item.optionLeftIcon,
|
|
337
337
|
labelLeftIconProps: labelLeftIconProps,
|