summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-04-28 03:59:50 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2017-05-03 13:42:55 -0500
commitc50da6ff552ff7917d53269847cc8fef79e352db (patch)
tree1c6c16c1b2fc5855e36b5d1ac73b40777d85d541
parenta1726b709d99f6c2b480ebee40ab82f1c32577df (diff)
downloadgitlab-ce-c50da6ff552ff7917d53269847cc8fef79e352db.tar.gz
Workaround for input_setter plugin bug
Right now the config object gets replaced when using multiple dropdowns that uses the same input_setter plugin. With this workaround we prevent that.
-rw-r--r--app/assets/javascripts/create_merge_request_dropdown.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/create_merge_request_dropdown.js b/app/assets/javascripts/create_merge_request_dropdown.js
index f9f3af22667..77f9f832d14 100644
--- a/app/assets/javascripts/create_merge_request_dropdown.js
+++ b/app/assets/javascripts/create_merge_request_dropdown.js
@@ -1,7 +1,10 @@
/* eslint-disable no-new */
/* global Flash */
import DropLab from './droplab/drop_lab';
-import InputSetter from './droplab/plugins/input_setter';
+import ISetter from './droplab/plugins/input_setter';
+
+// Todo: Remove this when fixing issue in input_setter plugin
+const InputSetter = Object.assign({}, ISetter);
const CREATE_MERGE_REQUEST = 'create-mr';
const CREATE_BRANCH = 'create-branch';