Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "ComboBox: Update styling so that the \"selected\" item does not get the \"selected\" look when navigating through the potential options.",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ export class ComboBox extends BaseComponent<IComboBoxProps, IComboBoxState> {
}

let idxOfSelectedIndex = -1;
if ((index !== undefined) && this.state.selectedIndices) {
if (this.props.multiSelect && (index !== undefined) && this.state.selectedIndices) {
idxOfSelectedIndex = this.state.selectedIndices.indexOf(index);
}
return (idxOfSelectedIndex >= 0);
Expand Down