Commit 11ae5399 authored by AUTOMATIC's avatar AUTOMATIC

make it so that custom context menu from contextMenu.js only disappears after...

make it so that custom context menu from contextMenu.js only disappears after user's click, ignoring non-user click events
parent ea05ddfe
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment