@azrico/reactgrid 1.1.11 → 1.1.12

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.
@@ -127,8 +127,8 @@ function DataGrid(props) {
127
127
  /* --------------------------------- events --------------------------------- */
128
128
  const onRowContextMenu = _react.default.useCallback((rowProps, event) => {
129
129
  if (_helpers.func_selection.has_selection()) return;
130
- update_menuAnchorEl(_helpers.func_selection.getVirtualElement(event.clientX, event.clientY));
131
130
  update_menuRow(rowProps.data);
131
+ update_menuAnchorEl(_helpers.func_selection.getVirtualElement(event.clientX, event.clientY));
132
132
  event.preventDefault();
133
133
  }, []);
134
134
  const onRowClick = _react.default.useCallback((rowProps, event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "main": "dist/index.js",
5
5
  "description": "React Datagrid",
6
6
  "author": "Azrideus <MehrdadTavangar@gmail.com>",
@@ -233,8 +233,8 @@ function DataGrid(props: DataGridProps) {
233
233
 
234
234
  const onRowContextMenu = React.useCallback((rowProps, event) => {
235
235
  if (func_selection.has_selection()) return;
236
- update_menuAnchorEl(func_selection.getVirtualElement(event.clientX, event.clientY));
237
236
  update_menuRow(rowProps.data);
237
+ update_menuAnchorEl(func_selection.getVirtualElement(event.clientX, event.clientY));
238
238
  event.preventDefault();
239
239
  }, []);
240
240
  const onRowClick = React.useCallback((rowProps, event) => {