Skip to content

ComboBox: Fix submit pending value#5048

Merged
jspurlin merged 4 commits intomicrosoft:masterfrom
jspurlin:jspurlin/ComboBoxFixSubmitPendingValue
May 31, 2018
Merged

ComboBox: Fix submit pending value#5048
jspurlin merged 4 commits intomicrosoft:masterfrom
jspurlin:jspurlin/ComboBoxFixSubmitPendingValue

Conversation

@jspurlin
Copy link
Copy Markdown
Contributor

@jspurlin jspurlin commented May 31, 2018

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ npm run change

Description of changes

There was a prop added a little while ago to use the ariaLabel as the text for an option but the check in submitPendingValue was missed causing options that might be displayed with a different string than what should be matched to not get matched.

This PR fixes 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

Focus areas to test

Verified that autocomplete pending matches now sumbit as expected

Microsoft Reviewers: Open in CodeFlow

jspurlin added 2 commits May 31, 2018 08:11
…ue to take into account if the aria-label is used as text. This line was missed in the initial change
@jspurlin jspurlin requested a review from christiango May 31, 2018 16:20
@jspurlin
Copy link
Copy Markdown
Contributor Author

@kysedate as an fyi

// 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(); // jeremy
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove the comment here

@kysedate
Copy link
Copy Markdown
Contributor

Looks good to me once the comment is removed

@jspurlin jspurlin merged commit f3af017 into microsoft:master May 31, 2018
Markionium added a commit to Markionium/office-ui-fabric-react that referenced this pull request Jun 1, 2018
* master: (95 commits)
  Applying package updates.
  Experiments/Nav component: display "show more" link only if there is atleast one hidden link (microsoft#5057)
  Add pointerup listener to exit keytip mode (microsoft#5051)
  Update PULL_REQUEST_TEMPLATE.md
  Update ISSUE_TEMPLATE.md
  Shimmer: resolve conflicts (microsoft#5034)
  Invalid ARIA attributes: Fix empty values (microsoft#5040)
  ComboBox: Correct invalid ARIA attributes. (microsoft#4873) (microsoft#5001)
  ComboBox: Fix submit pending value (microsoft#5048)
  FocusTrapZone - restore last focused descendant element (microsoft#4897)
  Applying package updates.
  Take 2 of the require.resolve change. This time using the "resolve" pkg (microsoft#5031)
  fixing webpack config to allow rush build to complete on a small VM (microsoft#5037)
  MessageBar: change color of X close button so that it is accessible (microsoft#5039)
  Theming: improve accessibility (microsoft#5038)
  Applying package updates.
  Added 'made with fabric' to readme (microsoft#5018)
  HoverCard: example accessibility fix. (microsoft#5027)
  Dropdown caret (microsoft#5016)
  Applying package updates.
  ...
Markionium added a commit to Markionium/office-ui-fabric-react that referenced this pull request Jun 2, 2018
* master: (274 commits)
  Demo Page Refactor Part 1 (microsoft#5055)
  SplitButton: Add aria-roledescription (microsoft#5062)
  Add addins sketch toolkit link (microsoft#5052)
  Dropdown title (microsoft#4983)
  Allow for more control over event handling for keytips (microsoft#5064)
  Build time speed improvements (microsoft#4965)
  Coachmark: Positioning fixes (microsoft#4995)
  Applying package updates.
  Experiments/Nav component: display "show more" link only if there is atleast one hidden link (microsoft#5057)
  Add pointerup listener to exit keytip mode (microsoft#5051)
  Update PULL_REQUEST_TEMPLATE.md
  Update ISSUE_TEMPLATE.md
  Shimmer: resolve conflicts (microsoft#5034)
  Invalid ARIA attributes: Fix empty values (microsoft#5040)
  ComboBox: Correct invalid ARIA attributes. (microsoft#4873) (microsoft#5001)
  ComboBox: Fix submit pending value (microsoft#5048)
  FocusTrapZone - restore last focused descendant element (microsoft#4897)
  Applying package updates.
  Take 2 of the require.resolve change. This time using the "resolve" pkg (microsoft#5031)
  fixing webpack config to allow rush build to complete on a small VM (microsoft#5037)
  ...
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants