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.

Unable to focus on empty editor on mobile

See original GitHub issue

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

Bug.

What’s the current behavior?

On mobile/touch devices, a tap on an empty Editor does not focus the editor. If the editor already has text, it’s fine.

In the GIF, there are multiple clicks/touches, but no focus. Here is the fiddle shown.

peek 2018-09-25 21-39

What’s the expected behavior?

A tap on an empty Editor should focus for editing.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
shahkashanicommented, Nov 16, 2018

I can no longer reproduce the crash, which is great. Things generally work fine in empty editors that have the placeholder. But sometimes you get into this weird state where there is no placeholder (and there should be), and in those situations you can’t type.

ezgif-4-952897590c82

0reactions
ianstormtaylorcommented, Nov 28, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set Focus on EditText - android - Stack Overflow
This code leads to the following result: After the EditText has lost focus, the focus jumps back to EditText, but I can't edit...
Read more >
Focusing: focus/blur - The Modern JavaScript Tutorial
Losing the focus generally means: “the data has been entered”, so we can run the code to check it or even to save...
Read more >
can't type in empty fields like search engines or login ...
Chosen Solution · Press the home button · Press the menu button · Select settings · scroll down to the Developer options ·...
Read more >
JavaScript Data Grid: Cell Editing - AG Grid
To enable Cell Editing for a Column use the editable property on the Column Definition. Download v28 of the best JavaScript Data Grid...
Read more >
Set Focus to Specific Cell after make textbox empty in Normal ...
I am using syncfusion ejs-grid in angular . Whenever user editing the row and make the mandatory textbox as empty and click on...
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