diff options
author | Rubén Dávila Santos <ruben@gitlab.com> | 2016-08-21 08:32:18 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2016-08-21 08:34:04 +0300 |
commit | 9cfd18d85b49d8c6303c1b7cc5591a8787a5217b (patch) | |
tree | 7c7cf2b14d709492ffbb7e1bc293e33f595af77f /app/views/projects/protected_branches/_create_protected_branch.html.haml | |
parent | 9510073dd4da378e7e7cca1680df586a21303559 (diff) |
Merge branch 'fix-empty-dropdown' into 'master'
Fix empty dropdown
Deselecting the current selected option on a dropdown they were removing the input related to them.
This led to a unexpected cases. The forms were submitted without all required inputs and the label was still indicating an option was selected. This MR fixes that.
See merge request !5927
Diffstat (limited to 'app/views/projects/protected_branches/_create_protected_branch.html.haml')
-rw-r--r-- | app/views/projects/protected_branches/_create_protected_branch.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/protected_branches/_create_protected_branch.html.haml b/app/views/projects/protected_branches/_create_protected_branch.html.haml index 95d8743f546..226f8311a90 100644 --- a/app/views/projects/protected_branches/_create_protected_branch.html.haml +++ b/app/views/projects/protected_branches/_create_protected_branch.html.haml @@ -25,6 +25,7 @@ .js-allowed-to-merge-container = dropdown_tag('Select', options: { toggle_class: 'js-allowed-to-merge wide', + dropdown_class: 'dropdown-menu-selectable', data: { field_name: 'protected_branch[merge_access_levels_attributes][0][access_level]', input_id: 'merge_access_levels_attributes' }}) .form-group %label.col-md-2.text-right{ for: 'push_access_levels_attributes' } @@ -33,6 +34,7 @@ .js-allowed-to-push-container = dropdown_tag('Select', options: { toggle_class: 'js-allowed-to-push wide', + dropdown_class: 'dropdown-menu-selectable', data: { field_name: 'protected_branch[push_access_levels_attributes][0][access_level]', input_id: 'push_access_levels_attributes' }}) .panel-footer |