diff --git a/javascript/contextMenus.js b/javascript/contextMenus.js index 42f301ab7ddd72e3f46f42b726b4c123f42841ce..b2bdf0532cbeb4bcb3bd1c5ace30779f39682c5b 100644 --- a/javascript/contextMenus.js +++ b/javascript/contextMenus.js @@ -92,8 +92,7 @@ contextMenuInit = function(){ return; } gradioApp().addEventListener("click", function(e) { - let source = e.composedPath()[0] - if(source.id && source.id.indexOf('check_progress')>-1){ + if(! e.isTrusted){ return }