Skip to content

Commit

Permalink
v4.8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jan 29, 2025
1 parent bb3eafb commit e770f6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/netdata-ui",
"version": "4.8.11",
"version": "4.8.12",
"description": "netdata UI kit",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/table/body/row.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default memo(
} else if (isClickable) {
onClickRow({ data: row.original, table: table, fullRow: row }, e)
}
setTimeout(() => e.target.scrollIntoView({ behavior: "auto", block: "nearest" }))
setTimeout(() => e?.target?.scrollIntoView?.({ behavior: "auto", block: "nearest" }))
},
[isClickable, row, onClickRow]
)}
Expand Down
3 changes: 2 additions & 1 deletion src/components/table/useColumns/useRowSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default (enabled, { testPrefix, tableMeta }) =>
data-testid={`netdata-table-cell-checkbox${testPrefix}`}
checked={!row.original?.disabled && row.getIsSelected()}
indeterminate={row.getIsSomeSelected()}
onChange={checked => {
onChange={(checked, e) => {
e?.stopPropagation?.()
row.getToggleSelectedHandler()({ target: { checked } })
}}
disabled={row.original?.disabled || false}
Expand Down
4 changes: 2 additions & 2 deletions src/components/tabs/__snapshots__/tabs.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ exports[`Tabs states * should render uncontrolled 1`] = `
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-webkit-justify-content: start;
-ms-flex-pack: start;
justify-content: flex-start;
justify-content: start;
padding: 0 2px;
color: #526161;
}
Expand Down

0 comments on commit e770f6e

Please sign in to comment.