@visns-studio/visns-components 5.2.6 → 5.2.7
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
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
79
79
|
},
|
|
80
80
|
"name": "@visns-studio/visns-components",
|
|
81
|
-
"version": "5.2.
|
|
81
|
+
"version": "5.2.7",
|
|
82
82
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
83
83
|
"main": "src/index.js",
|
|
84
84
|
"files": [
|
|
@@ -215,12 +215,15 @@ function Form({
|
|
|
215
215
|
const handleSelectOption = () => {
|
|
216
216
|
updateFormData({ [id]: inputValue });
|
|
217
217
|
|
|
218
|
-
// Update any matching form data properties
|
|
219
|
-
Object.keys(inputValue)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
218
|
+
// Update any matching form data properties
|
|
219
|
+
Object.keys(inputValue)
|
|
220
|
+
.filter(
|
|
221
|
+
(key) =>
|
|
222
|
+
formData.hasOwnProperty(key) &&
|
|
223
|
+
key !== 'id' &&
|
|
224
|
+
key !== 'label'
|
|
225
|
+
)
|
|
226
|
+
.forEach((key) => updateFormData({ [key]: inputValue[key] }));
|
|
224
227
|
|
|
225
228
|
formSettings.fields.forEach((field) => {
|
|
226
229
|
if (field.id === id && field.trigger) {
|