The `id` prop will be required in future versions to make the component accessible for users of assistive technologies such as screen readers.
See original GitHub issueVersion
"react-bootstrap-typeahead": "^3.4.5"
Steps to reproduce
users = [
{
"id": "5d08f94da9d6d25011d55e87",
"name": "Leo"
},
...
]
<Typeahead
labelKey="name"
options={users}
placeholder="Search user..."
onChange={this.handleChangeTy('userSelect')}
/>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Failed propType: The prop `id` is required to make `Dropdown ...
Failed propType: The prop `id` is required to make `Dropdown` accessible for users of assistive technologies such as screen readers. Check the ...
Read more >Accessibility - React
Accessibility support is necessary to allow assistive technology to interpret web pages. React fully supports building accessible websites, often by using ...
Read more >React Bootstrap Typeahead Example
Basic Example. The typeahead allows single-selection by default. Setting the multiple prop turns the component into a tokenizer, allowing multiple selections.
Read more >Use Salesforce Classic with Assistive Technologies
Learn about accessibility features designed for users working with assistive devices, such as speech recognition software and screen readers.
Read more >ARIA - Accessibility - MDN Web Docs - Mozilla
Accessible Rich Internet Applications (ARIA) is a set of roles and attributes that define ways to make web content and web applications ...
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
Hi @Angelk90, sure:
It works like the
id
on any normal element.Ah makes sense. There seems to be some interest in introducing a method for unique ID generation into React, particularly because the current methods do not work with both SSR & suspense. This would likely change the common practice to being generating these IDs internally. See the open RFC and PR.