Reference to highlighted suggestion in renderSuggestionsContainer
See original GitHub issueI need to apply different styling to the suggestions container depending of whether a suggestion is highlighted or not. I tried to access it through a stored ref
but that’s often null
(not sure that’s even correct). Also, I tried to store a reference to the highlighted suggestion in onSuggestionHighlighted
, but that’s called later than renderSuggestionsContainer
.
Is there currently a way to do this?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Add permanent suggestion in 'react autosuggest'
I use react in frontend an the npm react-autosuggestion for ... import parse from 'autosuggest-highlight/parse'; import TextField from ...
Read more >React Autosuggest
Supports custom suggestion rendering, multiple sections, and more. ... Note that we highlight the first suggestion by default here. Codepen. Custom render.
Read more >Customizing the suggestions container - CodePen
This example demonstrates how to customize the suggestions container....
Read more >react-autosuggest - NPM Package Overview - Socket - Socket.dev
highlightFirstSuggestion, Boolean, Set it to true if you'd like Autosuggest to automatically highlight the first suggestion.
Read more >github.com-moroshko-react-autosuggest_-_2017-07-28_10 ...
renderSuggestionsContainer | Function | | Use it if you want to ... This function is called when the highlighted suggestion changes.
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 Free
Top 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
Yeah, I’ll try something along this. I’ll close the issue then. Thanks.
@moroshko how can we add footer on each section ? like header using renderSectionTitle…