diff options
Diffstat (limited to 'app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js')
-rw-r--r-- | app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js | 5 |
1 files changed, 4 insertions, 1 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 e7fff57ff45..1266d70f073 100644 --- a/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js +++ b/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js @@ -19,7 +19,10 @@ return 'Select'; } }, - clicked(item, $el, e) { + clicked(opts) { + const { $el, e } = opts; + const item = opts.selectedObj; + e.preventDefault(); onSelect(); } |