How to close suggest list on select?
See original GitHub issueShort description
I was trying to select a suggestion, but the suggestion list doesn’t close after I select a suggestion item. I tried using below code but it didn’t work.
onSuggestSelect(suggest) {
console.log(suggest);
this._geoSuggest.blur();
}
<Geosuggest ref={el => (this._geoSuggest = el)}
onSuggestSelect={this.onSuggestSelect}
suggestsHiddenClassName="suggest-hidden"
suggestItemClassName="suggest-item"/>
I even tried this._geoSuggest.hideSuggests();
, but that too didn’t work.
Expected results
By selecting a suggestion item the suggestion list should close.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Hide autocomplete suggestion list on select dropbdown item ...
Hide autocomplete suggestion list on select dropbdown item and enter click · Subscribe to RSS.
Read more >Manage suggested recipients in the To, Cc, and Bcc boxes ...
Turn off the Auto-Complete List · Select File > Options > Mail. Choose the File tab. · Under Send messages, clear the Use...
Read more >Option to not close the dropdown when an item is selected #62
When an item is selected, the dropdown is automatically closed. ... My use case is as follows: When a suggestion is clicked, window.location ......
Read more >Manage Google autocomplete predictions - Google Search Help
On your Android phone or tablet, open the Google app Google Search . · At the top right, tap your Profile picture or...
Read more >Siri Suggestions on iPhone - Apple Support
Go to Settings > Siri & Search, scroll down, then select an app. Turn settings on or off. Change where Siri Suggestions appear....
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
Looks like some CSS is missing. Did you read this: https://github.com/ubilabs/react-geosuggest#styling ?
Thanks for this thread’s existence.
If anyone else wanders in here, check that above URL for a quick win:
Note: The geosuggest__suggests–hidden class is added to hide the suggestion list. You should copy the style below into your CSS file.
The component is excellent by the way. Deluxe API and amazing piece of technology.