Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checkbox not checkable on Firefox #3293

Merged
merged 1 commit into from
Feb 21, 2021
Merged

Fix checkbox not checkable on Firefox #3293

merged 1 commit into from
Feb 21, 2021

Conversation

luin
Copy link
Member

@luin luin commented Feb 19, 2021

The cause is items with display: contents don't have correct frames on Firefox, so the event listener attached to the checkbox won't work.

This PR only applies the display: contents to ordered and bullet list. It worth noticing that display: contents was introduced to fix the following issues:

  1. On Firefox, command + left arrow key can't move the caret to the beginning of the list item.
  2. Left arrow can't move the caret that is at the beginning of a list item to the previous line.

After this change, regressions of the above issues are expected but only for the checkboxes.

Also, after some tests, display: contents introduces a side effect on Safari that pressing command + left arrow on the first line of a list item will move the caret to the beginning of the editor. Not sure the reason though.

Test plan:

  1. Make sure checkboxes are checkable on Firefox.
  2. Make sure Command + Left arrow key & Left arrow key work on Firefox for bullet and ordered lists.

@luin luin requested a review from jhchen February 19, 2021 10:20
@luin luin marked this pull request as ready for review February 19, 2021 10:20
@jhchen jhchen merged commit 1f0530a into develop Feb 21, 2021
@jhchen jhchen deleted the firefox-checkbox branch February 21, 2021 20:46
DokaRus pushed a commit to DokaRus/devextreme-quill that referenced this pull request Mar 25, 2021
Fix checkbox not checkable on Firefox

(cherry picked from commit 1f0530a)
DokaRus added a commit to DevExpress/devextreme-quill that referenced this pull request Mar 26, 2021
* Merge pull request slab#3223 from luin/ignore-nested-quill-mutations

Ignore mutations happens in nested Quill instance

(cherry picked from commit 8ce3ee3)

* Merge pull request slab#3272 from luin/firefox-bullet

Header/paragraph doesn't reset list numbering in Firefox

(cherry picked from commit eeb976e)

* allow list completion on lists and headers

(cherry picked from commit a6911aa)

* fix arrow keying past list item

- in chrome it take two left arrows to go to prev list item
- in firefox ctrl+left does not work

(cherry picked from commit 9d16aa5)

* fix breaking list items

Without this a string with no space on a line will cause the break to
occur after the bullet but with it a string with spaces may not break at
the space. The latter is much more common and also the choice Paper
makes

(cherry picked from commit 232b6f4)

* Merge branch 'fix-cut-format'

* Merge pull request slab#3293 from quilljs/firefox-checkbox

Fix checkbox not checkable on Firefox

(cherry picked from commit 1f0530a)

Co-authored-by: Jason Chen <jhchen7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants