diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee
index 5ffacf9a184856c14f5542db92ca7cb76cf1211d..1b0d0db89542b8361aaeb3a0905b223b35f7254f 100644
--- a/app/assets/javascripts/gl_dropdown.js.coffee
+++ b/app/assets/javascripts/gl_dropdown.js.coffee
@@ -518,7 +518,9 @@ class GitLabDropdown
         if !field.length and fieldName
           @addInput(fieldName, value)
         else
-          field.val value
+          field
+            .val value
+            .trigger 'change'
 
       return selectedObject
 
diff --git a/spec/features/compare_spec.rb b/spec/features/compare_spec.rb
index faffe314912c5dc851f7e6c840a9e649a6197aec..c62556948e0faadd495b976288131ca1cf89264e 100644
--- a/spec/features/compare_spec.rb
+++ b/spec/features/compare_spec.rb
@@ -16,7 +16,7 @@ describe "Compare", js: true do
     end
 
     it "should compare branches" do
-      fill_in "from", with: "mast"
+      fill_in "from", with: "fea"
       find("#from").click
 
       click_link "feature"