From fcdcc0d351e07f3838f71f6d617cf2f3d13c663a Mon Sep 17 00:00:00 2001 From: kushalpandya Date: Thu, 20 Jul 2017 23:40:14 +0530 Subject: [PATCH] Spread used props --- .../protected_branch_access_dropdown.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js b/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js index 0b29b365da8..38b1406a99f 100644 --- a/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js +++ b/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js @@ -5,12 +5,12 @@ export default class ProtectedBranchAccessDropdown { } initDropdown() { - const { onSelect } = this.options; - this.options.$dropdown.glDropdown({ - data: this.options.data, + const { $dropdown, data, onSelect } = this.options; + $dropdown.glDropdown({ + data, selectable: true, - inputId: this.options.$dropdown.data('input-id'), - fieldName: this.options.$dropdown.data('field-name'), + inputId: $dropdown.data('input-id'), + fieldName: $dropdown.data('field-name'), toggleLabel(item, $el) { if ($el.is('.is-active')) { return item.text;