Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2019-02-13 01:22:21 +0300
committerBrett Walker <bwalker@gitlab.com>2019-02-13 01:22:21 +0300
commitff71ac7217a8e5fa33c9ce8c46a5642c1d27f5e4 (patch)
tree574acce7d438ac5fc67d9b26b63180b898f7b39e /app
parenta58e92fc1b96c6967d160473d5c8dff17bf18775 (diff)
Find checkbox input with less specific selector
Diffstat (limited to 'app')
-rw-r--r--app/services/task_list_toggle_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/task_list_toggle_service.rb b/app/services/task_list_toggle_service.rb
index af24bc0524c..f6602a35033 100644
--- a/app/services/task_list_toggle_service.rb
+++ b/app/services/task_list_toggle_service.rb
@@ -67,6 +67,6 @@ class TaskListToggleService
# When using CommonMark, we should be able to use the embedded `sourcepos` attribute to
# target the exact line in the DOM.
def get_html_checkbox(html)
- html.css(".task-list-item[data-sourcepos^='#{line_number}:'] > input.task-list-item-checkbox").first
+ html.css(".task-list-item[data-sourcepos^='#{line_number}:'] input.task-list-item-checkbox").first
end
end