@azrico/reactgrid 1.2.45 → 1.2.46
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 +14 -0
- package/dist/src/views/DataGrid.js +5 -1
- package/package.json +2 -2
- package/src/views/DataGrid.tsx +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.2.46](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.46) (2023-07-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
|
|
16
|
+
* onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
|
|
17
|
+
* styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
|
|
18
|
+
|
|
5
19
|
### [1.2.45](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.45) (2023-07-09)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -145,10 +145,14 @@ function DataGridEventsWrapper(props) {
|
|
|
145
145
|
rowProps
|
|
146
146
|
}) => {
|
|
147
147
|
menuProps.autoDismiss = true;
|
|
148
|
+
function onclose() {
|
|
149
|
+
menuProps.onDismiss();
|
|
150
|
+
set_menuAnchorEl(null);
|
|
151
|
+
}
|
|
148
152
|
return _react.default.createElement(_controls.ContextMenu, {
|
|
149
153
|
dontAutoClose: true,
|
|
150
154
|
menuAnchorEl: menuAnchorEl,
|
|
151
|
-
|
|
155
|
+
close: onclose,
|
|
152
156
|
menuRow: rowProps.data,
|
|
153
157
|
menu_items: props.contextMenuItems
|
|
154
158
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azrico/reactgrid",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.46",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"description": "React Datagrid",
|
|
6
6
|
"author": "Azrideus <MehrdadTavangar@gmail.com>",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"typescript": "^4.8.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@azrico/controls": "^1.5.
|
|
32
|
+
"@azrico/controls": "^1.5.58",
|
|
33
33
|
"@azrico/object": "^1.4.35",
|
|
34
34
|
"@emotion/react": "^11.9.3",
|
|
35
35
|
"@emotion/styled": "^11.9.3",
|
package/src/views/DataGrid.tsx
CHANGED
|
@@ -301,11 +301,15 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
|
|
|
301
301
|
const renderRowContextMenu = React.useCallback(
|
|
302
302
|
(menuProps, { rowProps }) => {
|
|
303
303
|
menuProps.autoDismiss = true;
|
|
304
|
+
function onclose() {
|
|
305
|
+
menuProps.onDismiss();
|
|
306
|
+
set_menuAnchorEl(null);
|
|
307
|
+
}
|
|
304
308
|
return (
|
|
305
309
|
<ContextMenu
|
|
306
310
|
dontAutoClose
|
|
307
311
|
menuAnchorEl={menuAnchorEl}
|
|
308
|
-
|
|
312
|
+
close={onclose}
|
|
309
313
|
menuRow={rowProps.data}
|
|
310
314
|
menu_items={props.contextMenuItems as any}
|
|
311
315
|
/>
|