diff --git a/resources/assets/javascripts/bootstrap/forms.js b/resources/assets/javascripts/bootstrap/forms.js
index 60ae9c3244e644d834049715a602a0b575dbb9f2..90afae6ad9a70e41a61f5e777294a0ab85f02b94 100644
--- a/resources/assets/javascripts/bootstrap/forms.js
+++ b/resources/assets/javascripts/bootstrap/forms.js
@@ -107,9 +107,7 @@ $(document)
         // Submit only if value has changed and either enter was pressed or
         // select was opened by click
         if (!is_default && shouldSubmit) {
-            $(this)
-                .closest('form')
-                .submit();
+            $(this.form).submit();
             return false;
         }
     });