提交 11ae5399 编写于 作者: A 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
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册