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.

Need help on "having the suggestion lists open if user click done in iOS virtual keyboard"

See original GitHub issue

*Example Basic example.

  • Provide the steps to reproduce the issue, e.g.:
    1. Focus on the input field
    2. Type c, and wait for suggestions to appear
    3. Click done after typing dismiss suggestions
screen shot 2017-10-23 at 12 02 37 pm

Observed behaviour: Suggestions stay open When done button is clicked in virtual keyboard, suggestions are dismissed. Expected behaviour: Suggestions should be closed When done button is clicked in virtual keyboard, suggestions are will stay open

  • Please describe your use case from user journey point of view, e.g.: I want to keep the suggestions list open if user click done button in iOS virtual keyboard.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:8
  • Comments:6

github_iconTop GitHub Comments

1reaction
ahmetkuslularcommented, Jan 2, 2020

same issue in 2020

0reactions
matthewhomancommented, Mar 5, 2021

I’ve been looking for a fix as well. I came up with this work around. Basically if the input is blurred it will never clear out the suggestions unless the input box is empty. Which is also kind of annoying because you can’t close the suggestions unless you clear out the input box. However you could add an X button or something to clear it. I also render the input to select all of the text on focus to easily clear it out with a backspace.

onSuggestionsClearRequested = () => { if(this.state.value.trim() === '') { this.setState({ suggestions: [] }); } };

const inputComponent = inputProps => ( <div> <input {...inputProps} style={{cursor:"pointer"}} onClick={(event) => event.target.select()}/> </div> );

Read more comments on GitHub >

github_iconTop Results From Across the Web

Type with the onscreen keyboard on iPhone - Apple Support
Enter text using the onscreen keyboard. In any app that allows text editing, open the onscreen keyboard by tapping a text field. Tap...
Read more >
Enable text suggestions in Windows - Microsoft Support
Enable text suggestions in Windows · Select it with your mouse, or with touch (if your PC supports it). · Press the Up...
Read more >
Fix problems with Gboard - iPhone & iPad - Google Support
If you have issues or privacy concerns with Gboard, try these steps. Important: Gboard is available for iPhones and iPads with iOS 9...
Read more >
Links - Usability & Web Accessibility - Yale University
Keyboard -only users press the tab key to navigate through interactive elements like links. As such, it is important that users be able...
Read more >
iPad Web App: Detect Virtual Keyboard Using JavaScript in ...
Hm, interesting problem. Try iterating over "window"'s objects on iPad's Safari to see if there are any special objects related to keyboard support....
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