Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX-367 Fix ListBox key events bug #681

Merged
merged 1 commit into from
Nov 12, 2020
Merged

UX-367 Fix ListBox key events bug #681

merged 1 commit into from
Nov 12, 2020

Conversation

logansparlin
Copy link
Contributor

What Changed

  • Fixes a bug where using a number value on a ListBox.Option throws an error
  • Adds start:localMatchbox script to the site to make testing matchbox changes in the design site easier

How To Test or Verify

PR Checklist

  • Add the correct type label
  • Pull request approval from #uxfe or #design-guild

Copy link
Contributor

@jonambas jonambas left a comment

Choose a reason for hiding this comment

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

This looks good - was able to reproduce the bug and verify it is fixed

const index = options.findIndex(option =>
option.props.value.toLowerCase().startsWith(keysSoFar),
option.props.children.toLowerCase().startsWith(keysSoFar),
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to clarify, this is searching children (the option label) instead of the value, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah

@logansparlin logansparlin merged commit 6da9b85 into main Nov 12, 2020
@jonambas jonambas deleted the UX-367 branch February 18, 2021 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants