@visns-studio/visns-components 2.6.4 → 2.6.5

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.
@@ -499,23 +499,26 @@ const DataGrid = forwardRef(
499
499
  return null; // Return null if neither search is enabled nor create is disabled
500
500
  };
501
501
 
502
- const renderRowContextMenu = useCallback((menuProps, { rowProps }) => {
503
- if (form && form.newTabUrl && form.newTabUrl !== '') {
504
- menuProps.autoDismiss = true;
505
- menuProps.items = [
506
- {
507
- label: 'Open Link in a New Tab',
508
- onClick: () => {
509
- window.open(
510
- `${form.newTabUrl}${
511
- rowProps.data[form.primaryKey]
512
- }`
513
- );
502
+ const renderRowContextMenu = useCallback(
503
+ (menuProps, { rowProps }) => {
504
+ if (form && form.newTabUrl && form.newTabUrl !== '') {
505
+ menuProps.autoDismiss = true;
506
+ menuProps.items = [
507
+ {
508
+ label: 'Open Link in a New Tab',
509
+ onClick: () => {
510
+ window.open(
511
+ `${form.newTabUrl}${
512
+ rowProps.data[form.primaryKey]
513
+ }`
514
+ );
515
+ },
514
516
  },
515
- },
516
- ];
517
- }
518
- }, []);
517
+ ];
518
+ }
519
+ },
520
+ [form]
521
+ );
519
522
 
520
523
  const handleCoding = (c, data) => {
521
524
  const icons = [];
package/package.json CHANGED
@@ -44,7 +44,7 @@
44
44
  "react-dom": "^17.0.1"
45
45
  },
46
46
  "name": "@visns-studio/visns-components",
47
- "version": "2.6.4",
47
+ "version": "2.6.5",
48
48
  "description": "Various packages to assist in the development of our Custom Applications.",
49
49
  "main": "index.js",
50
50
  "scripts": {