Selected option is not highlighted when pressing up down navigation
See original GitHub issueThe root cause is: outer component was using shallow-compare to determine when it should re-render:
shouldComponentUpdate(nextProps, nextState) {
return shallowCompare(this, nextProps, nextState)
}
And the way mentions plugin triggers an update is: https://github.com/draft-js-plugins/draft-js-plugins/blob/master/draft-js-mention-plugin/src/MentionSuggestions/index.js#L245
// to force a re-render of the outer component to change the aria props
this.props.store.setEditorState(this.props.store.getEditorState());
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Dropdown menu (select) not highlighting ... - Stack Overflow
I'm building a search form but have something strange going on with the selected="selected" option not being highlighted. The form's pulling ...
Read more >Typeahead Dropdown does not highlight/select first ... - GitHub
When implementing typeahead with <ng-option>, the dropdown items do not get marked when only using keyboard to navigate.
Read more >How to Highlight or Select Text - Computer Hope
To select only certain items from the list, hold down Ctrl , and click each item you want to highlight. Repeat this action...
Read more ><select>: The HTML Select element - HTML - MDN Web Docs
Selecting an item at the top or bottom of the range they want to select using the Up and Down cursor keys to...
Read more >3 Ways to Fix the Arrow Keys Not Working in Excel - MakeUseOf
Create a new document by clicking on the File menu and select New. Copy the following code and paste it into your document....
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

I belive I can make one this weekend
ok cool, then I close this issue for now and open it if we identify this wasn’t actually the problem