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

[ResourceList] initial selection causes UI glitch #11516

Closed
schiller-manuel opened this issue Jan 28, 2024 · 1 comment
Closed

[ResourceList] initial selection causes UI glitch #11516

schiller-manuel opened this issue Jan 28, 2024 · 1 comment

Comments

@schiller-manuel
Copy link

Issue summary

When rendering a ResourceList with a selectedItems prop that is NOT empty, the UI glitches as shown in the video:

resourcelist-bug.mp4

The UI works again once either the window is resized or the selection is changed.

As a workaround, the selectedItems can be set in a useEffect.

Expected behavior

If selectedItems is not empty, UI should work as usual.

Actual behavior

UI glitches.

Steps to reproduce the problem

  1. render a ResourceList with a non-empty selectedItems prop

Reduced test case

see stories at schiller-manuel@181d80e

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number: 12.11.1
  • Browser: Firefox
  • Device: Desktop
  • Operating System: macOS
Copy link
Contributor

Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically.

If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant