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

Heading style applying to wrong line #4170

Open
Lordrin opened this issue May 3, 2024 · 0 comments
Open

Heading style applying to wrong line #4170

Lordrin opened this issue May 3, 2024 · 0 comments

Comments

@Lordrin
Copy link

Lordrin commented May 3, 2024

Applying a heading style to a selected line is not applying properly on the Edge browser when the mouse moves out of the editor while selecting text. Also tested on Firefox where it does work as expected.

Steps for Reproduction

  1. Visit quilljs.com/playground/snow
  2. Add multiple lines in the editor.
  3. Click a line where you don't want the style to apply.
  4. Click and drag the mouse on the line you want to apply the style to.
  5. Leave the editor with the mouse while still holding down the mouse.
    QuillJS-line4-3

Expected behavior:
The heading style is only applied to the selected line.

Actual behavior:
The heading style is applied to the last click, excluding the click and drag.

Platforms:

Include browser, operating system and respective versions

  • Microsoft Edge for Business: Version 124.0.2478.51 (Official build) (64-bit)Version 124.0.2478.51 (Official build) (64-bit)

Version:
Tried on:

  • 2.0.1
  • 1.3.7
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

No branches or pull requests

1 participant