Issue or MR Task checkbox cannot be clicked for ordered lists
Summary
The checkbox for tasks in Issues cannot be clicked when the tasks are part of an ordered list. Instead the new task re-ordering drag handle is in the way, preventing it.
Steps to reproduce
Create an issue with an ordered list of tasks in the description, and an unordered task list:
1. [ ] Do this task
2. [ ] Now do that task
3. [ ] You're done
- [ ] This needs to be done some time
- [ ] So does this, but can be done before the one above
- [ ] Also don't forget to do this task
Try to click on the tasks in the ordered list: you cannot (in Firefox, or Chrome).
Example Project
You can see this on an example public training issue, or in this issue.
Here are some example tasks:
-
Do this task -
Now do that task -
You're done
-
This needs to be done some time -
So does this, but can be done before the one above -
Also don't forget to do this task
What is the current bug behavior?
When moving the mouse over the checkbox in order to check off the task, the handle to re-order the task list appears, preventing to click on the checkbox underneath
What is the expected correct behavior?
Should be able to check the box, as can be done for unordered tasks.
Relevant logs and/or screenshots
Attempting to click on task number 3 in the list:
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Adjust the placement of the task re-ordering handle so that it does not cover the checkbox.
Workaround: Edit the description to view the raw Markdown, and manually check off the task by putting an x
in the brackets:
1. [x] Do this task
2. [ ] Now do that task
3. [ ] You're done