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

Triple clicking selects parts of the block below #3871

Open
evasteingrims opened this issue Sep 10, 2020 · 3 comments
Open

Triple clicking selects parts of the block below #3871

evasteingrims opened this issue Sep 10, 2020 · 3 comments

Comments

@evasteingrims
Copy link

Do you want to request a feature or report a bug?

A bug

What's the current behavior?

Triple clicking for example a paragraph that has a heading below it also selects part of the heading. This can be seen by looking at the rich text menu, the heading format is selected. When copying and pasting the paragraph, an empty heading is also pasted below it.

This can be reproduced in the rich text demo.

triple-click

Slate: 0.58.4
Browser: Chrome
OS: Mac

What's the expected behavior?

Only the block being triple clicked should be selected and copy/pasting it should not paste the empty heading

@mbaranovski
Copy link

As a workaround I've added this in my project to the Slate Editor component:

onMouseDown={(e: MouseEvent): void => {
            if (e.detail === 3) {
              e.preventDefault()
              e.stopPropagation()
            }
          }}

@cezarsmpio
Copy link

This seems to be an issue still. Any news?

@e1himself
Copy link
Contributor

e1himself commented Mar 31, 2022

Is there a chance this will be fixed with #4908 ?

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

4 participants