diff --git a/go/templates/quotes/index.html b/go/templates/quotes/index.html
index ee8b93ce..fc2bb726 100644
--- a/go/templates/quotes/index.html
+++ b/go/templates/quotes/index.html
@@ -345,7 +345,7 @@ function showDisableModal(quoteID, enquiryRef) {
document.getElementById('disableModal').classList.remove('hidden');
// Close any open dropdowns
- document.querySelectorAll('form > div.absolute').forEach(d => d.classList.add('hidden'));
+ document.querySelectorAll('div.absolute.right-0').forEach(d => d.classList.add('hidden'));
}
function hideDisableModal() {