diff --git a/web/static/js/vulnerability-workspace.js b/web/static/js/vulnerability-workspace.js index 13678091..2b041075 100644 --- a/web/static/js/vulnerability-workspace.js +++ b/web/static/js/vulnerability-workspace.js @@ -197,6 +197,11 @@ function refreshVulnerabilityInspector(id) { ['vulnerability-inspector','vulnerability-merge-modal'].forEach(id => { const dialog = document.getElementById(id); if (!dialog) return; + if (id === 'vulnerability-inspector') { + dialog.addEventListener('click', event => { + if (event.target === dialog) closeAppModal(id); + }); + } dialog.addEventListener('keydown', event => { if (event.key === 'Escape' && !vulnerabilityMergeBusy) { closeAppModal(id); diff --git a/web/templates/index.html b/web/templates/index.html index 838d9e19..f50cfc74 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -7132,7 +7132,7 @@ - +