We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 204f162 commit fe33775Copy full SHA for fe33775
CS/DxBlazorApplication1/wwwroot/js/mdi.js
@@ -1,6 +1,7 @@
1
function addContextMenuHandler(container, tabClass, text, dotNetObject) {
2
var tabElement = container.getElementsByClassName(tabClass)[0];
3
- if (!tabElement) return;
+ if (!tabElement || tabElement.hasAttribute("cp_ctx")) return;
4
+ tabElement.setAttribute("cp_ctx", true);
5
tabElement.addEventListener('contextmenu', (event) => {
6
event.preventDefault();
7
let eventArgs = {
0 commit comments