Unable to focus on empty editor on mobile
See original GitHub issueDo 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.
What’s the expected behavior?
A tap on an empty Editor
should focus for editing.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.