ywana-core8 0.0.147 → 0.0.151
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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +3 -3
package/package.json
CHANGED
package/src/html/table.js
CHANGED
@@ -77,7 +77,7 @@ export const DataTable = (props) => {
|
|
77
77
|
const sort = sortDir[id] ? sortDir[id] : null
|
78
78
|
return (
|
79
79
|
<th>
|
80
|
-
{id === "checked" ? <CheckBox onChange={checkAll} /> : <Text>{label}</Text>}
|
80
|
+
{id === "checked" ? <CheckBox onChange={checkAll} /> : <Text key={`th_${id}`}>{label}</Text>}
|
81
81
|
{sortable ? <Icon icon="arrow_up" size="small" clickable /> : null}
|
82
82
|
</th>
|
83
83
|
)
|
@@ -110,7 +110,7 @@ const DataTableRow = (props) => {
|
|
110
110
|
return (
|
111
111
|
<Fragment>
|
112
112
|
<tr onClick={ev => onSelect(row, ev)}>
|
113
|
-
{columns.map(column => <DataTableCell row={row} column={column} cell={row[column.id]} editable={editable} />)}
|
113
|
+
{columns.map((column,index) => <DataTableCell key={`${column.id}_${index}`} row={row} column={column} cell={row[column.id]} editable={editable} />)}
|
114
114
|
{row.info ? <td><Icon icon={infoIcon} clickable action={() => toggleInfo(!isInfoOpen)} /></td> : <td></td>}
|
115
115
|
</tr>
|
116
116
|
{row.info && isInfoOpen ? (
|
@@ -157,7 +157,7 @@ const DataTableCell = ({ row, column, cell, editable }) => {
|
|
157
157
|
}
|
158
158
|
|
159
159
|
return (
|
160
|
-
<td className={column.id}>{render(column.type)}</td>
|
160
|
+
<td key={column.id} className={column.id}>{render(column.type)}</td>
|
161
161
|
)
|
162
162
|
}
|
163
163
|
|