ywana-core8 0.0.102 → 0.0.103
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 +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +2 -1
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -263,12 +263,13 @@ const TableEditor = (props) => {
|
|
263
263
|
id: field.id,
|
264
264
|
label: field.label,
|
265
265
|
type: field.type,
|
266
|
-
onChange: field.
|
266
|
+
onChange: field.id === "checked" ? check : field.editable ? change : null, /* checked has it´s own handler */
|
267
267
|
options
|
268
268
|
}
|
269
269
|
}),
|
270
270
|
rows: groups[groupName]
|
271
271
|
.map(item => {
|
272
|
+
item.checked = pageContext.checked.some(id => id === item.id)
|
272
273
|
item.actions = actions ? actions.map(action => {
|
273
274
|
return action.filter ?
|
274
275
|
action.filter(item) ? <Icon icon={action.icon} clickable size="small" action={() => run(action, item)} /> : null
|