We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc764bb commit a81b68cCopy full SHA for a81b68c
src/MultiInput/MultiInput.js
@@ -13,14 +13,15 @@ export class MultiInput extends Component {
13
14
// create tags to display in dropdown list
15
createTagList = data => {
16
+ const randNum = Math.floor(Math.random() * 1000000 + 1);
17
return data && data.length > 0 ? (
18
data.map((item, index) => (
19
<li key={index}>
- <label htmlFor={index} className="fd-menu__item">
20
+ <label htmlFor={index + `_${randNum}`} className="fd-menu__item">
21
<input
22
type="checkbox"
23
className="fd-checkbox"
- id={index}
24
+ id={index + `_${randNum}`}
25
value={item}
26
onChange={this.updateSelectedTags}
27
checked={this.isChecked(item)}
0 commit comments