Skip to content

Remove react-virtualized from ComboBox#3173

Merged
myasonik merged 8 commits intoelastic:feature/selectable-a11yfrom
myasonik:cleanup-react-virtualized
May 12, 2020
Merged

Remove react-virtualized from ComboBox#3173
myasonik merged 8 commits intoelastic:feature/selectable-a11yfrom
myasonik:cleanup-react-virtualized

Conversation

@myasonik
Copy link
Copy Markdown
Contributor

Summary

Removing react-virtualized in favor of react-window.

EuiSelectable and EuiComboBox were the only two consumers of react-virtualized. With EuiSelectable moving to react-window, this made sense to do to drop EUI's footprint. react-window is smaller, faster, and has better accessibility so it's pretty much a win on all fronts.

Did the smallest amount of changes to make this happen but they do handle things like scrolling and item rendering a bit differently so it required a bit of code.

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in IE11

  • Checked in Firefox
    - [ ] Props have proper autodocs
    - [ ] Added documentation examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
    - [ ] Checked for accessibility including keyboard-only and screenreader modes
    - [ ] A changelog entry exists and is marked appropriately

@myasonik myasonik added chore dependencies PRs that update a dependency file labels Mar 25, 2020
@myasonik myasonik requested a review from chandlerprall March 25, 2020 23:18
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_3173/

@myasonik myasonik removed the request for review from chandlerprall April 1, 2020 22:35
@myasonik
Copy link
Copy Markdown
Contributor Author

myasonik commented Apr 1, 2020

This change was requested by @chandlerprall but anyone can review

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_3173/

Copy link
Copy Markdown
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.

A couple initial things:

  • Can we remove react-virtualized from our deps now?

  • In the "Virtualized" EuiComboBox example, when I select an option the list is scrolled to the top. Previously, scroll position was maintained after making selections.

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

There's a regression in functionality for the Groups example: clicking on a group label in the dropdown closes the list; compare with the published docs where nothing happens when clicking a group label.

@myasonik myasonik force-pushed the cleanup-react-virtualized branch from 386b61e to 3c0c49e Compare April 7, 2020 01:47
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_3173/

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_3173/

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_3173/

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

Changes LGTM! Tested in the PR's docs build and couldn't hit a snag.

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

Meant to hit the Approve button

@myasonik myasonik merged commit 5860e96 into elastic:feature/selectable-a11y May 12, 2020
@myasonik myasonik deleted the cleanup-react-virtualized branch May 12, 2020 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore dependencies PRs that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants