Skip to content

Commit 5fd08e1

Browse files
committed
[DDW-645] Add key prop to highlight element
1 parent 0e9f075 commit 5fd08e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/skins/simple/OptionsSkin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const OptionsSkin = (props: Props) => {
135135
const parts = typeof label === 'string' ? label.split(splitter) : label;
136136
for (let i = 1; i < parts.length; i += 2) {
137137
if (escapeRegExp(parts[i].toLowerCase()) === `${escapedSearchValue}`.toLowerCase())
138-
parts[i] = <em>{parts[i]}</em>;
138+
parts[i] = <em key={i}>{parts[i]}</em>;
139139
label = parts;
140140
}
141141
}

0 commit comments

Comments
 (0)