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.

Text input broken on android devices

See original GitHub issue

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

Bug.

What is the current behavior? When typing text in a draftJS editor, for example on the homepage of draftjs.org, text disappears as soon as a user types a space or enter.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/. It is reproducible on the homepage of draftjs.org

What is the expected behavior? Text should not disappear.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? Latest version of draft.js.

So far I’ve been able to reproduce this behavior on:

  • Samsung devices running Android 6.
  • Google Nexus 5 running Android 6.
  • Google Pixel running Android 7.1.2.

The bug is not present on Samsung with android 5.1.1

Issue Analytics

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

github_iconTop GitHub Comments

15reactions
iEchoiccommented, Feb 15, 2018

@flarnie the Draft.js homepage is still giving the misleading impression that this is a cross-browser solution, which is causing many people to invest time into this library and then find unexpectedly that it doesn’t work for them. Draft.js doesn’t work on the most popular web browser in the world. Why is this still being marketed this way?

2reactions
sandorvasascommented, Feb 4, 2019

One fcking year later, still not working. Bugfixes have been provided, but FB won’t merge it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TextInput is causing app to hang in Samsung devices ... - GitHub
Our app is throwing ANRs when users with Samsung devices with Android 13 are typing in input fields. We had a similar issue...
Read more >
Having a problem with text input focus in android devices
Hi to all , I am having a problem with the text input. When the user click on the menu icon, the menu...
Read more >
Fix problems with Gboard - Android - Google Support
On your Android phone or tablet, open the Settings app Settings app . Tap System and then Languages and input. Tap Virtual keyboard...
Read more >
html text input broken - Nexus-S 4G / Android 4 - Stack Overflow
I tried removing the maxlength attributes from all fields, no change. It appears to be specific to this one device type. Testing with...
Read more >
[Android] Text input is broken after longpressing backspace ...
Steps to reproduce: Type a word in a text area. Delete the word by long-pressing the backspace key. Type a new word by...
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