@trackunit/react-form-components 0.0.464 → 0.0.466
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -2153,7 +2153,7 @@ const FormFieldSelectAdapter = React.forwardRef((_a, ref) => {
|
|
|
2153
2153
|
helpText: (renderAsInvalid && errorMessage) || helpText,
|
|
2154
2154
|
helpAddon,
|
|
2155
2155
|
tip,
|
|
2156
|
-
label, children: [jsxRuntime.jsx("select", { onChange, ref: innerRef, name, value: innerValue, hidden: true,
|
|
2156
|
+
label, children: [jsxRuntime.jsx("select", { onChange, ref: innerRef, name, value: innerValue, hidden: true, children: optionsWithCurrentSelectionBackupOption.map(option => {
|
|
2157
2157
|
return (jsxRuntime.jsx("option", { value: option.value, children: option.label }, option.value));
|
|
2158
2158
|
}) }), children(Object.assign(Object.assign({}, rest), { id,
|
|
2159
2159
|
disabled,
|
package/index.esm.js
CHANGED
|
@@ -2123,7 +2123,7 @@ const FormFieldSelectAdapter = forwardRef((_a, ref) => {
|
|
|
2123
2123
|
helpText: (renderAsInvalid && errorMessage) || helpText,
|
|
2124
2124
|
helpAddon,
|
|
2125
2125
|
tip,
|
|
2126
|
-
label, children: [jsx("select", { onChange, ref: innerRef, name, value: innerValue, hidden: true,
|
|
2126
|
+
label, children: [jsx("select", { onChange, ref: innerRef, name, value: innerValue, hidden: true, children: optionsWithCurrentSelectionBackupOption.map(option => {
|
|
2127
2127
|
return (jsx("option", { value: option.value, children: option.label }, option.value));
|
|
2128
2128
|
}) }), children(Object.assign(Object.assign({}, rest), { id,
|
|
2129
2129
|
disabled,
|