Slate: Double clicking words with marks does not select them properly more often than not

Created on 25 Oct 2018  Â·  16Comments  Â·  Source: ianstormtaylor/slate

Not sure where the origin of this might be, but here's what I'm seeing - using the Rich Text example: http://recordit.co/sqMCk2ylvI

âš‘ needs info

All 16 comments

Hmm, this seems to work for me at https://www.slatejs.org/#/rich-text.

What browser / version are you using?

That's really weird. I reproduced this 3 separate times in Chrome 70, but now I can't. Closing this unless I find a way to make this happen again.

Still happens to me on Chrome 72 (Win 10). Does not happen on IE nor Edge.

@kode-ninja this is happening in the latest version of Slate at https://www.slatejs.org/?

Can you provide instructions to recreate the issue, a last known working version of Slate, and a video recording the issue? For a video you can use RecordIt

The more of these you can provide the better chance there is for this issue to be reopened. FWIW I can't recreate this in Chrome 72 on Windows 7.

Yep, forgot to mention I'm using latest Slate version (44.10) and latest React and react-dom (16.8.2).
Chrome 72 (Win 10). Does not happen on IE nor Edge.

@Slapbox, here's a video of my own editor in which it happens on non-marked nodes too: http://recordit.co/qD8V6i7COh

On the example page, it happens on marked nodes only: http://recordit.co/OMtXAL1pen

Huh. I wonder if it's related to React versions. I haven't check what the examples are running.

So, any news?

From: Slapbox
Sent: Tuesday, 19 February 2019 20:48
To: ianstormtaylor/slate
Cc: kode-ninja; Mention
Subject: Re: [ianstormtaylor/slate] Double clicking words with marks does notselect them properly more often than not (#2317)

Huh. I wonder if it's related to React versions. I haven't check what the examples are running.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@Slapbox will you re-open?

@kode-ninja you've definitely demonstrated the issue exists. Re-opened.

You can try asking on the Slack channel to see if anyone has any insights until this issue gets some attention and investigation. Since no one else seems to be seeing it yet I wouldn't expect for this issue to gain traction quickly.

@kode-ninja I tried to reproduce but it doesn't seem to be reproducible. the only way I can kinda reproduce the problem is if I move my mouse slightly in between the click

@kode-ninja what version of Slate-React are you using? You're testing with no plugins or extra event handlers?

@isubasti this is so strange...did you try to reproduce on Win10 with the exact same versions?

@Slapbox react-slate 0.21.16

@kode-ninja yes the exact same windows, chrome, & slate version

@Slapbox @isubasti's comment got me thinking and I've tried to reproduce the issue using a mouse instead of the laptop's mouse-pad and I couldn't. Can anyone else try with a mouse pad?

I believe that this may be fixed by https://github.com/ianstormtaylor/slate/pull/3093, which has changed a lot of the logic in Slate and slate-react especially. I'm going to close this out, but as always, feel free to open a new issue if it persists for you. Thanks for understanding.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markolofsen picture markolofsen  Â·  3Comments

YurkaninRyan picture YurkaninRyan  Â·  3Comments

ianstormtaylor picture ianstormtaylor  Â·  3Comments

ianstormtaylor picture ianstormtaylor  Â·  3Comments

yalu picture yalu  Â·  3Comments