@visns-studio/visns-components 4.8.7 → 4.8.8
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/package.json
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
76
76
|
},
|
|
77
77
|
"name": "@visns-studio/visns-components",
|
|
78
|
-
"version": "4.8.
|
|
78
|
+
"version": "4.8.8",
|
|
79
79
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
80
80
|
"main": "src/index.js",
|
|
81
81
|
"files": [
|
|
@@ -899,17 +899,22 @@ const DataGrid = forwardRef(
|
|
|
899
899
|
};
|
|
900
900
|
|
|
901
901
|
const renderRowContextMenu = useCallback(
|
|
902
|
-
(menuProps, { rowProps }) => {
|
|
903
|
-
if (
|
|
902
|
+
(menuProps, { rowProps, cellProps }) => {
|
|
903
|
+
if (
|
|
904
|
+
cellProps.link &&
|
|
905
|
+
cellProps.link.url &&
|
|
906
|
+
cellProps.link.url !== ''
|
|
907
|
+
) {
|
|
904
908
|
menuProps.autoDismiss = true;
|
|
905
909
|
menuProps.items = [
|
|
906
910
|
{
|
|
907
911
|
label: 'Open Link in a New Tab',
|
|
908
912
|
onClick: () => {
|
|
909
913
|
window.open(
|
|
910
|
-
`${
|
|
914
|
+
`${cellProps.link.url}/${
|
|
911
915
|
rowProps.data[form.primaryKey]
|
|
912
|
-
}
|
|
916
|
+
}`,
|
|
917
|
+
'_blank'
|
|
913
918
|
);
|
|
914
919
|
},
|
|
915
920
|
},
|