ywana-core8 0.0.819 → 0.0.820
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/dist/index.cjs +6 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +5 -6
package/package.json
CHANGED
@@ -451,15 +451,14 @@ const CollectionAdder = ({ item, onAdd }) => {
|
|
451
451
|
}
|
452
452
|
|
453
453
|
function change(index, cellId, cellValue) {
|
454
|
-
|
455
|
-
|
456
|
-
delete next.actions
|
457
|
-
setForm(structuredClone(next))
|
458
|
-
}
|
454
|
+
const next = Object.assign({}, form, { [cellId]: cellValue })
|
455
|
+
setForm(next)
|
459
456
|
}
|
460
457
|
|
461
458
|
function save() {
|
462
|
-
|
459
|
+
const next = Object.assign({}, form )
|
460
|
+
delete next.actions
|
461
|
+
if (onAdd) onAdd([next])
|
463
462
|
toggle()
|
464
463
|
}
|
465
464
|
|