question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Checklist: unable to tick/untick check boxes on Chrome Mobile

See original GitHub issue

Hi, this issue was originally detected and discussed at https://github.com/quilljs/quill/issues/759#issuecomment-372505017. When using Chrome Mobile and trying to tick or untick a check box, the box returns to the previous state.

Steps for Reproduction

  1. Visit https://codepen.io/anon/pen/JLdyQq on Chrome Mobile (or Chrome Desktop with inspect)
  2. Add a checklist with a few check boxes
  3. Tick / untick checkboxes

Expected behavior: For the checkbox to become ticked / unticked

Actual behavior: The checkbox returns to previous state

Platforms: Chrome Mobile

Version: v1.3.5

Investigation: This issue happens because both touchstart and mousedown are being fired, see list.js#L77-L78 and https://github.com/quilljs/quill/issues/759#issuecomment-372782369 for more details.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

3reactions
koenvgcommented, Oct 18, 2020

Hey, if anyone is looking for a workaround. This is how I solved it.

const List = Quill.import("formats/list");

class BetterList extends List {
  constructor(el: HTMLElement) {
    super(el);

    const isCheckList = el.hasAttribute("data-checked");
    el.addEventListener("touchstart", (e) => {
      if (!isCheckList) {
        return;
      }
      e.preventDefault();
    });
  }
}

Quill.register("formats/lists", BetterList);
0reactions
akhilaudablecommented, May 2, 2020

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Checkbox input can't be unchecked in mobile view on chrome
Once I check the checkmark box I am not able to uncheck it when I am on mobile view in chrome and when...
Read more >
Multicheck Checkbox Checker
Simply check or uncheck multiple checkboxes at a time by clicking and dragging. Allows you to check multiple checkboxes quickly by CLICKING ...
Read more >
5 Ways To Check or Uncheck Multiple Checkboxes in Web ...
5 Ways To Check or Uncheck Multiple Checkboxes in Web Browsers ; 1. Multicheck Checkbox Checker (Chrome) ; 2. Click All Checkboxes (Chrome)...
Read more >
How to clear check boxes with a single check box
You can do this with a script but I don't know if it will work on mobile. I know you can't do this...
Read more >
Google Sheets - Check or Uncheck All Checkboxes - YouTube
Learn how to check or uncheck all checkboxes in Google Sheets.# check # uncheck # checkboxes. ... Your browser can't play this video....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found