make it so that custom context menu from contextMenu.js only disappears after user's click, ignoring non-user click events
This commit is contained in:
parent
ea05ddfec8
commit
11ae5399f6
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user