Avatar input is broken on Group edit
Unable to set avatar on group.
Operating System: Mac OS X 10.11.6 (15G1108)
Browser: Google Chrome Version 55.0.2883.95 (64-bit)
Steps to reproduce
- Go to edit group https://gitlab.com/groups/GROUP_NAME/edit
- Click "Choose File …" button
- Notice the form immediately posts and the page has reloaded before you can choose the file.
Expect to be able to choose the avatar file and then click 'Save group'.
Clicking the "Choose File …" button immediately submits the form behind the file open dialog. The dialog/input association is broken at that point.
Output of checks
This bug happens on GitLab.com
hidden class from the file input allows you to use the standard file input.
<input class="js-group-avatar-input hidden" type="file" name="group[avatar]" id="group_avatar">