spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Bug]: the sp-grid renderItem callback sometimes passes undefined

Open hunterloftis opened this issue 3 years ago • 0 comments
trafficstars

Code of conduct

  • [X] I agree to follow this project's code of conduct.

Impacted component(s)

sp-grid

Expected behavior

If sp-grid items are all defined, renderItem is never called with an undefined value.

Actual behavior

Received a bug report that, with an Array of items where every item is defined, the renderItem callback is sometimes passed an undefined value.

Screenshots

No response

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

  1. Go to '...'
  2. Click on '....'
  3. Scroll to '....'
  4. Check console
  5. See error

Sample code that illustrates the problem

This needs a minimal reproduction in order for us to write a regression test that verifies the fix moving forward.

Logs taken while reproducing problem

No response

hunterloftis avatar Aug 01 '22 18:08 hunterloftis