Add backdrop click to close test template modal
Some checks failed
Validate / validate (push) Failing after 7s
Some checks failed
Validate / validate (push) Failing after 7s
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2477,7 +2477,15 @@ async function showTestTemplateModal(templateId) {
|
|||||||
document.getElementById('test-template-results').style.display = 'none';
|
document.getElementById('test-template-results').style.display = 'none';
|
||||||
|
|
||||||
// Show modal
|
// 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
|
// Close test template modal
|
||||||
|
|||||||
Reference in New Issue
Block a user