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

Fix focus on single selection #1965

Merged
merged 8 commits into from
May 30, 2019
Merged

Conversation

sulemanof
Copy link
Contributor

@sulemanof sulemanof commented May 27, 2019

Summary

Fix #1966

Current behavior:

  • after selecting a value in singleSelection mode the focus goes to the toggle list button:

combobox-fix

Checklist

  • This was checked in mobile
  • This was checked in IE11
  • This was checked in dark mode
    - [ ] Any props added have proper autodocs
    - [ ] Documentation examples were added
  • A changelog entry exists and is marked appropriately
    - [ ] This was checked for breaking changes and labeled appropriately
    - [ ] Jest tests were updated or added to match the most common scenarios
  • This was checked against keyboard-only and screenreader scenarios
    - [ ] This required updates to Framer X components

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

Looks good otherwise. Thanks

Please add a changelog entry, as well.

src/components/combo_box/combo_box.js Outdated Show resolved Hide resolved
@PhilippBaranovskiy
Copy link
Contributor

@maryia-lapata, could you please confirm that the suggested Caroline's way does fix the issue you and @sulemanof have faced in Kibana?

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

Getting closer

src/components/combo_box/combo_box.js Outdated Show resolved Hide resolved
Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Works for me. Just one more suggestion for the changelog entry.

CHANGELOG.md Outdated Show resolved Hide resolved
@cchaos cchaos requested a review from thompsongl May 29, 2019 15:51
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.

EuiComboBox: Focus is missed in a singleSelection mode
5 participants