Slate: Clicking on an editor doesn't always give focus

Created on 29 Aug 2018  Â·  8Comments  Â·  Source: ianstormtaylor/slate

Do you want to request a _feature_ or report a _bug_?

I'm reporting a bug: when using multiple editors on the same page, moving the focus from one editor to the next with the pointer is unreliable.

What's the current behavior?

With more than one editor on the same page, clicking from one editor to another does not always give it the focus. The behavior is non-deterministic (as a far as I can tell), and it sometimes works.

This can be reproduced on the Syncing Operations example on the SlateJS website.
(For this reason, I'm not including a Fiddle).

issue gif

My setup:

  • MacOS 10.14
  • Chrome 68.0.3440.106
  • Slate 0.40.2

What's the expected behavior?

The focus should reliably move to an editor when clicking on it.

bug ♥ help

Most helpful comment

I still seeing this issue on
slate: "0.44.9"
slate-react: '0.21.15"

All 8 comments

Probably related to #2097

I can confirm this. Having two editor components with just the "getting started" editor renders one editor unusable.

I also tested earlier versions and this already seems to be buggy with

"slate": "0.37.4",
"slate-react": "0.15.5",

2018-08-31 22 41 54

@quentez Do you still see this behavior? I can't reproduce and I think it may have been fixed in https://github.com/ianstormtaylor/slate/pull/2150

I still seeing this issue on
slate: "0.44.9"
slate-react: '0.21.15"

I am still seeing the same issue with:

[email protected]
[email protected]

Is there a workaround?

Kapture 2020-04-06 at 16 39 16

I think I'm reproducing the same issue, see the above gif.

```
"slate": "^0.57.1",
"slate-history": "^0.57.1",
"slate-react": "^0.57.1",
````

@CameronAckermanSEL / @ianstormtaylor may this issue get reopened?

Hey @FezVrasta , this original issue was related to a long deprecated version of slate. I think it’d make more sense to open something new with some fresh information. Happy to reopen it though if you feel strongly that the same conditions are true. Also, see this https://github.com/ianstormtaylor/slate/issues/3380#issuecomment-612432934, it might be related?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gorillatron picture gorillatron  Â·  3Comments

varoot picture varoot  Â·  3Comments

ezakto picture ezakto  Â·  3Comments

vdms picture vdms  Â·  3Comments

chrpeter picture chrpeter  Â·  3Comments