We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43f355 commit 28d2de5Copy full SHA for 28d2de5
app/views/vendors/new_modal.js.erb
@@ -1,5 +1,10 @@
1
$("#modal_new").html("<%= j (render "vendors/new_modal") %>");
2
$("#modal_new").modal("show");
3
+
4
+// There seems to be an odd bug where *only on this page* the close button for the modal
5
+// doesn't work if the "fade" class is added to the modal.
6
+// To keep the fade functionality, we remove it once the modal is shown so the close button
7
+// works, then re-add it in case the modal has to be popped up again.
8
$("#modal_new").on('hidden.bs.modal', function(e) {
9
$("#modal_new").addClass("fade");
10
})
0 commit comments