@longline/aqua-ui 1.0.270 → 1.0.271
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.
|
@@ -343,7 +343,7 @@ var DropdownBase = function (props) {
|
|
|
343
343
|
var activeIndex = (props.data || []).indexOf(value);
|
|
344
344
|
return (props.data || []).map(function (row, index) {
|
|
345
345
|
return (React.createElement(ListRow, { active: index == activeIndex, key: index + 1, gap: props.gap, onClick: function (e) { return handleClick(e, row); } },
|
|
346
|
-
props.multiple && React.createElement(Selector, { locked: true, checked: Array.isArray(value) && value.
|
|
346
|
+
props.multiple && React.createElement(Selector, { locked: true, checked: Array.isArray(value) && value.find(function (x) { return JSON.stringify(x) == JSON.stringify(row); }) }),
|
|
347
347
|
columns.map(function (child, index) {
|
|
348
348
|
return (React.createElement(ListCell, { key: index, width: child.props.width, align: child.props.align }, row !== null && child.props.children(row)));
|
|
349
349
|
})));
|