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.

[BUG] TextInput widget does not allow entering text on mobile devices

See original GitHub issue

On mobile devices with Android and Chrome:

Observation: When opening html produced the Python-code below: It’s impossible to enter text, because keyboard opens but closes immediately after opening.

Expected behaviour appears when opening the same html on Chrome-Desktop on laptop and/or tablet.

from bokeh.plotting import show
from bokeh.models import CustomJS, TextInput, Paragraph
from bokeh.layouts import column

message = 'You entered text: '

text_banner = Paragraph(text=message, width=200, height=100)

def cb(text_banner=text_banner):
    user_input = str(cb_obj.value);
    message = 'You entered text: ' + user_input
    text_banner.text = message

text_input = TextInput(value="", title="Enter:", callback=CustomJS.from_py_func(cb))
layout = column(text_input, text_banner)

show(layout)

I was told on https://gitter.im/bokeh/bokeh?source=orgpage that mobile devices are currently not tested. But I submit this bug for the case, that this situation will change.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
xavArtleycommented, Nov 10, 2019

Yes

0reactions
bryevdvcommented, Nov 10, 2019

@xavArtley just clarifying you think this can be closed at this point then?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input field iOS Safari bug — Can't type in any text
It's working as expected on desktop, Android, iOS Chrome, but sometimes in iOS Safari when typing into the box, no text enters, even...
Read more >
[In Progress] Text input box does not accept user input
Text input box does not accept user input. For the following items, iPhone 9 is OK but iPhone7 is NG. There is no...
Read more >
[SOLVED] Input text html widget example not working - Ubidots
Hi, im trying to figure out a way to make users edit a text box, in order to put information about the product,...
Read more >
Specify the input method type - Android Developers
You should always declare the input method for your text fields by adding the android:inputType attribute to the <EditText> element. Figure 1.
Read more >
Working with the EditText | CodePath Android Cliffnotes
If you use an EditText with an input password type, you can also enable an icon that can show or hide the entire...
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