funda-ui 4.7.185 → 4.7.187
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/Select/index.js +2 -2
- package/lib/cjs/Select/index.js +2 -2
- package/lib/esm/Select/index.tsx +2 -3
- package/package.json +1 -1
package/Select/index.js
CHANGED
|
@@ -5280,7 +5280,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
5280
5280
|
// ++++++++++++++++++++
|
|
5281
5281
|
// Single selection
|
|
5282
5282
|
// ++++++++++++++++++++
|
|
5283
|
-
if (_typeof(value) === 'object' && !Array.isArray(value)) {
|
|
5283
|
+
if (_typeof(value) === 'object' && !Array.isArray(value) && value !== null) {
|
|
5284
5284
|
if (typeof value.value !== 'undefined' && value.value !== null) setControlValue(value.value);
|
|
5285
5285
|
if (typeof value.label !== 'undefined' && value.label !== null) setControlLabel(formatIndentVal(value.label, INDENT_LAST_PLACEHOLDER));
|
|
5286
5286
|
}
|
|
@@ -5352,7 +5352,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
5352
5352
|
// ++++++++++++++++++++
|
|
5353
5353
|
// Single selection
|
|
5354
5354
|
// ++++++++++++++++++++
|
|
5355
|
-
if (_typeof(defaultValue) === 'object' && !Array.isArray(defaultValue)) {
|
|
5355
|
+
if (_typeof(defaultValue) === 'object' && !Array.isArray(defaultValue) && defaultValue !== null) {
|
|
5356
5356
|
if (typeof defaultValue.value !== 'undefined' && defaultValue.value !== null) setControlValue(defaultValue.value);
|
|
5357
5357
|
if (typeof defaultValue.label !== 'undefined' && defaultValue.label !== null) setControlLabel(formatIndentVal(defaultValue.label, INDENT_LAST_PLACEHOLDER));
|
|
5358
5358
|
}
|
package/lib/cjs/Select/index.js
CHANGED
|
@@ -5280,7 +5280,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
5280
5280
|
// ++++++++++++++++++++
|
|
5281
5281
|
// Single selection
|
|
5282
5282
|
// ++++++++++++++++++++
|
|
5283
|
-
if (_typeof(value) === 'object' && !Array.isArray(value)) {
|
|
5283
|
+
if (_typeof(value) === 'object' && !Array.isArray(value) && value !== null) {
|
|
5284
5284
|
if (typeof value.value !== 'undefined' && value.value !== null) setControlValue(value.value);
|
|
5285
5285
|
if (typeof value.label !== 'undefined' && value.label !== null) setControlLabel(formatIndentVal(value.label, INDENT_LAST_PLACEHOLDER));
|
|
5286
5286
|
}
|
|
@@ -5352,7 +5352,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
|
|
|
5352
5352
|
// ++++++++++++++++++++
|
|
5353
5353
|
// Single selection
|
|
5354
5354
|
// ++++++++++++++++++++
|
|
5355
|
-
if (_typeof(defaultValue) === 'object' && !Array.isArray(defaultValue)) {
|
|
5355
|
+
if (_typeof(defaultValue) === 'object' && !Array.isArray(defaultValue) && defaultValue !== null) {
|
|
5356
5356
|
if (typeof defaultValue.value !== 'undefined' && defaultValue.value !== null) setControlValue(defaultValue.value);
|
|
5357
5357
|
if (typeof defaultValue.label !== 'undefined' && defaultValue.label !== null) setControlLabel(formatIndentVal(defaultValue.label, INDENT_LAST_PLACEHOLDER));
|
|
5358
5358
|
}
|
package/lib/esm/Select/index.tsx
CHANGED
|
@@ -53,7 +53,6 @@ import { clsWrite, combinedCls } from 'funda-utils/dist/cjs/cls';
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
|
|
57
56
|
export type SelectOptionChangeFnType = (arg1: any, arg2: any, arg3: any) => void;
|
|
58
57
|
|
|
59
58
|
|
|
@@ -2046,7 +2045,7 @@ const Select = forwardRef((props: SelectProps, externalRef: any) => {
|
|
|
2046
2045
|
// ++++++++++++++++++++
|
|
2047
2046
|
// Single selection
|
|
2048
2047
|
// ++++++++++++++++++++
|
|
2049
|
-
if (typeof value === 'object' && !Array.isArray(value)) {
|
|
2048
|
+
if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
|
|
2050
2049
|
if (typeof value.value !== 'undefined' && value.value !== null) setControlValue(value.value as string);
|
|
2051
2050
|
if (typeof value.label !== 'undefined' && value.label !== null) setControlLabel(formatIndentVal(value.label, INDENT_LAST_PLACEHOLDER));
|
|
2052
2051
|
}
|
|
@@ -2126,7 +2125,7 @@ const Select = forwardRef((props: SelectProps, externalRef: any) => {
|
|
|
2126
2125
|
// ++++++++++++++++++++
|
|
2127
2126
|
// Single selection
|
|
2128
2127
|
// ++++++++++++++++++++
|
|
2129
|
-
if (typeof defaultValue === 'object' && !Array.isArray(defaultValue)) {
|
|
2128
|
+
if (typeof defaultValue === 'object' && !Array.isArray(defaultValue) && defaultValue !== null) {
|
|
2130
2129
|
if (typeof defaultValue.value !== 'undefined' && defaultValue.value !== null) setControlValue(defaultValue.value as string);
|
|
2131
2130
|
if (typeof defaultValue.label !== 'undefined' && defaultValue.label !== null) setControlLabel(formatIndentVal(defaultValue.label, INDENT_LAST_PLACEHOLDER));
|
|
2132
2131
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "4.7.
|
|
5
|
+
"version": "4.7.187",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|