question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clicking on an editor doesn't always give focus

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Saebyuckbaancommented, Jan 11, 2019

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

2reactions
Mythlicommented, Aug 31, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with losing focus on all editors. Forum editor, Word ...
The page or editor will lose focus and you have to click on the editor agian to regain the focus and typing position....
Read more >
HTML input fields does not get focus when clicked
when i click it the field does not get the focus. i can access the field via pressing the "tab-key". It sounds like...
Read more >
The editor window doesn't want to let go of focus
If I am in the editor window, then click another window (i.e. Safari, Mail, etc.), that window will gain focus for a half...
Read more >
Inconsistent behavior among browsers when clicking on buttons
When you click on a button in Safari (12.1.1), the button does not get focus. The document gets focus instead. We know this...
Read more >
"Link with editor" does not work when "Focus on active task" is ...
Moreover, you cannot switch "Link with Editor" on, without previously switch "Focus on active task" off... or, at least, the UI gives you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found