diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-02-13 01:22:21 +0300 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2019-02-13 01:22:21 +0300 |
commit | ff71ac7217a8e5fa33c9ce8c46a5642c1d27f5e4 (patch) | |
tree | 574acce7d438ac5fc67d9b26b63180b898f7b39e /app | |
parent | a58e92fc1b96c6967d160473d5c8dff17bf18775 (diff) |
Find checkbox input with less specific selector
Diffstat (limited to 'app')
-rw-r--r-- | app/services/task_list_toggle_service.rb | 2 |
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 |