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: Fix the value that is checked when submitting a pending value to take into account if the aria-label is used as text. This line was missed in the initial change",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "jspurlin@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ export class ComboBox extends BaseComponent<IComboBoxProps, IComboBoxState> {

// Check to see if the user typed an exact match
if (this._indexWithinBounds(currentOptions, currentPendingValueValidIndex)) {
const pendingOptionText: string = currentOptions[currentPendingValueValidIndex].text.toLocaleLowerCase();
const pendingOptionText: string = this._getPreviewText(currentOptions[currentPendingValueValidIndex]).toLocaleLowerCase();

// By exact match, that means: our pending value is the same as the the pending option text OR
// the pending option starts with the pending value and we have an "autoComplete" selection
Expand Down