@dvrd/dvr-controls 1.0.18 → 1.0.20
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.
package/package.json
CHANGED
|
@@ -145,7 +145,8 @@ export default class DvrdSelect extends PureComponent<Props, State> {
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
renderItem = (item: SelectItemShape, index: number) => {
|
|
148
|
-
const {
|
|
148
|
+
const {value, selectableItemLabel} = item;
|
|
149
|
+
const label = selectableItemLabel ?? item.label;
|
|
149
150
|
const {itemClassName} = this.props;
|
|
150
151
|
if (['number', 'string'].includes(typeof label)) return (
|
|
151
152
|
<label key={index} className={classNames('dvrd-select-item', itemClassName)}
|