ywana-core8 0.0.817 → 0.0.819
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 +3 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -13
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +3 -11
package/package.json
CHANGED
@@ -454,7 +454,7 @@ const CollectionAdder = ({ item, onAdd }) => {
|
|
454
454
|
if (onAdd) {
|
455
455
|
const next = Object.assign({}, form, { [cellId]: cellValue })
|
456
456
|
delete next.actions
|
457
|
-
setForm(next)
|
457
|
+
setForm(structuredClone(next))
|
458
458
|
}
|
459
459
|
}
|
460
460
|
|
@@ -488,16 +488,8 @@ const TableEditor = (props) => {
|
|
488
488
|
const [groupBy, setGroupBy] = useState(props.groupBy)
|
489
489
|
|
490
490
|
function change(id, value) {
|
491
|
-
const nextData = data
|
492
|
-
|
493
|
-
const next = Object.assign({}, row, { [id]: value })
|
494
|
-
delete next.actions
|
495
|
-
delete next.undefined
|
496
|
-
return next
|
497
|
-
} else {
|
498
|
-
return row
|
499
|
-
}
|
500
|
-
})
|
491
|
+
const nextData = structuredClone(data)
|
492
|
+
nextData[id] = value
|
501
493
|
if (onChange) onChange(field.id, nextData)
|
502
494
|
}
|
503
495
|
|