@azrico/reactgrid 1.2.45 → 1.2.47

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 CHANGED
@@ -2,6 +2,34 @@
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.47](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.47) (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
+
19
+ ### [1.2.46](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.46) (2023-07-09)
20
+
21
+
22
+ ### Features
23
+
24
+ * editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
30
+ * onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
31
+ * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
32
+
5
33
  ### [1.2.45](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.45) (2023-07-09)
6
34
 
7
35
 
@@ -145,10 +145,13 @@ 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
- dontAutoClose: true,
150
153
  menuAnchorEl: menuAnchorEl,
151
- set_menuAnchorEl: update_menuAnchorEl,
154
+ close: onclose,
152
155
  menuRow: rowProps.data,
153
156
  menu_items: props.contextMenuItems
154
157
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.2.45",
3
+ "version": "1.2.47",
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.57",
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",
@@ -301,11 +301,14 @@ 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
- dontAutoClose
307
310
  menuAnchorEl={menuAnchorEl}
308
- set_menuAnchorEl={update_menuAnchorEl}
311
+ close={onclose}
309
312
  menuRow={rowProps.data}
310
313
  menu_items={props.contextMenuItems as any}
311
314
  />