forstok-ui-lib 6.7.0 → 6.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "6.7.0",
3
+ "version": "6.7.1",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -138,7 +138,7 @@ const SelectComponent = ({ type, isError=false, mode, customOption, customLabel,
138
138
  }
139
139
  } else {
140
140
  const newValue = value as OnChangeValue<TOption, false>;
141
- mode === 'paymentReceiveStore' ? setValue(newValue ? { value: newValue.value, label : newValue.label, channel: newValue.channel } : newValue) : setValue(newValue ? { value: newValue.value, label : newValue.label } : newValue);
141
+ mode === 'paymentReceiveStore' ? setValue(newValue ? { value: newValue.value, label : newValue.label, channel: newValue.channel } : newValue) : (customLabel ? setValue(newValue ? { value: newValue.value, label : newValue.label, name : newValue.name } : newValue) : setValue(newValue ? { value: newValue.value, label : newValue.label } : newValue) );
142
142
  evChange && evChange(newValue, { action, removedValue, option });
143
143
  }
144
144
  (!isMulti && isField && evChangeCustom && name) && evChangeCustom(name, value);