@festo-ui/react 9.0.1-dev.780 → 9.0.1-dev.781
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.
|
@@ -97,7 +97,6 @@ function ComboBoxComponent({ defaultValue = '', value: controlled, label, option
|
|
|
97
97
|
/*#__PURE__*/ jsx(ComboboxInput, {
|
|
98
98
|
className: inputClasses,
|
|
99
99
|
id: id,
|
|
100
|
-
name: name,
|
|
101
100
|
required: required,
|
|
102
101
|
disabled: disabled,
|
|
103
102
|
placeholder: placeholder,
|
|
@@ -112,6 +111,12 @@ function ComboBoxComponent({ defaultValue = '', value: controlled, label, option
|
|
|
112
111
|
})
|
|
113
112
|
]
|
|
114
113
|
}),
|
|
114
|
+
name && /*#__PURE__*/ jsx("input", {
|
|
115
|
+
type: "hidden",
|
|
116
|
+
name: name,
|
|
117
|
+
value: String(value ?? ''),
|
|
118
|
+
disabled: disabled
|
|
119
|
+
}),
|
|
115
120
|
/*#__PURE__*/ jsxs(ComboboxOptions, {
|
|
116
121
|
className: "fwe-options-container",
|
|
117
122
|
as: "ul",
|
|
@@ -66,7 +66,6 @@ function MultiSelectComponent({ defaultValue = [], value: controlled, label, opt
|
|
|
66
66
|
value: selectedOptions,
|
|
67
67
|
onChange: handleChange,
|
|
68
68
|
disabled: disabled,
|
|
69
|
-
name: name,
|
|
70
69
|
multiple: true,
|
|
71
70
|
children: /*#__PURE__*/ jsxs("div", {
|
|
72
71
|
className: classnames(className, 'fwe-select-wrapper', {
|
|
@@ -170,6 +169,12 @@ function MultiSelectComponent({ defaultValue = [], value: controlled, label, opt
|
|
|
170
169
|
})
|
|
171
170
|
}, String(option.data)))
|
|
172
171
|
}),
|
|
172
|
+
name && (value ?? []).map((selectedValue, index)=>/*#__PURE__*/ jsx("input", {
|
|
173
|
+
type: "hidden",
|
|
174
|
+
name: name,
|
|
175
|
+
value: String(selectedValue),
|
|
176
|
+
disabled: disabled
|
|
177
|
+
}, `${name}-${String(selectedValue)}-${index}`)),
|
|
173
178
|
hint && !error && /*#__PURE__*/ jsx("div", {
|
|
174
179
|
className: "fwe-select-description",
|
|
175
180
|
children: hint
|
|
@@ -24,7 +24,6 @@ function SelectComponent({ defaultValue = '', value: controlled, label, options
|
|
|
24
24
|
value: selectedOption ?? null,
|
|
25
25
|
onChange: handleChange,
|
|
26
26
|
disabled: disabled,
|
|
27
|
-
name: name,
|
|
28
27
|
children: /*#__PURE__*/ jsxs("div", {
|
|
29
28
|
className: classnames(className, 'fwe-select-wrapper', {
|
|
30
29
|
'fwe-disabled': disabled
|
|
@@ -71,6 +70,12 @@ function SelectComponent({ defaultValue = '', value: controlled, label, options
|
|
|
71
70
|
children: option.label
|
|
72
71
|
}, String(option.data)))
|
|
73
72
|
}),
|
|
73
|
+
name && /*#__PURE__*/ jsx("input", {
|
|
74
|
+
type: "hidden",
|
|
75
|
+
name: name,
|
|
76
|
+
value: String(value ?? ''),
|
|
77
|
+
disabled: disabled
|
|
78
|
+
}),
|
|
74
79
|
hint && !error && /*#__PURE__*/ jsx("div", {
|
|
75
80
|
className: "fwe-select-description",
|
|
76
81
|
children: hint
|
package/package.json
CHANGED