diff --git a/server/src/wled_controller/static/app.js b/server/src/wled_controller/static/app.js index d1c77db..1046691 100644 --- a/server/src/wled_controller/static/app.js +++ b/server/src/wled_controller/static/app.js @@ -2477,7 +2477,15 @@ async function showTestTemplateModal(templateId) { document.getElementById('test-template-results').style.display = 'none'; // Show modal - document.getElementById('test-template-modal').style.display = 'flex'; + const modal = document.getElementById('test-template-modal'); + modal.style.display = 'flex'; + + // Add backdrop click handler to close modal + modal.onclick = function(event) { + if (event.target === modal) { + closeTestTemplateModal(); + } + }; } // Close test template modal