@stenajs-webui/grid 15.5.1 → 15.5.2
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/CHANGELOG.md +12 -0
- package/dist/index.es.js +1 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v15.5.2 (Fri Apr 08 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Fix event propagation bug in onKeyDown in StandardTable [#450](https://github.com/StenaIT/stenajs-webui/pull/450) ([@mattias800](https://github.com/mattias800))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Mattias Andersson ([@mattias800](https://github.com/mattias800))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v15.5.1 (Thu Apr 07 2022)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/dist/index.es.js
CHANGED
|
@@ -1543,12 +1543,8 @@ var StandardTableCell = React.memo(function StandardTableCell(_a) {
|
|
|
1543
1543
|
? isEditable(item)
|
|
1544
1544
|
: undefined;
|
|
1545
1545
|
var onKeyDownHandler = useCallback(function (ev) {
|
|
1546
|
-
onKeyDownTable === null || onKeyDownTable === void 0 ? void 0 : onKeyDownTable(ev, { columnId: columnId, item: item });
|
|
1547
1546
|
onKeyDownCell === null || onKeyDownCell === void 0 ? void 0 : onKeyDownCell(ev, { columnId: columnId, item: item });
|
|
1548
|
-
|
|
1549
|
-
ev.preventDefault();
|
|
1550
|
-
ev.stopPropagation();
|
|
1551
|
-
}
|
|
1547
|
+
onKeyDownTable === null || onKeyDownTable === void 0 ? void 0 : onKeyDownTable(ev, { columnId: columnId, item: item });
|
|
1552
1548
|
}, [onKeyDownTable, columnId, item, onKeyDownCell]);
|
|
1553
1549
|
var gridCell = useGridCell(label, __assign(__assign({ colIndex: colIndex, rowIndex: rowIndex, numRows: numRows, numCols: numNavigableColumns, tableId: tableId, isEditable: editable, onChange: onChange
|
|
1554
1550
|
? function (value) { return onChange(item, value); }
|