react-spectrum: ListView: from 3.38 slots appear to not work

Provide a general summary of the issue here

I’m not sure why, but as soon as I bump @adobe/react-spectrum from 3.37.1 to 3.38 ListView slots stop working.

🤔 Expected Behavior?

No change when upgrading.

😯 Current Behavior

This is how it starts to look with an ActionButton, for example:

Image

On 3.37.1, however, it’s fine.

💁 Possible Solution

Not sure.

🔦 Context

My goal is to bump to the latest version of Spectrum, but I’m stuck on this.

🖥️ Steps to Reproduce

Use ListView in version 3.38+ with any slots (<Text slot="description">, <ActionButton>, checkbox selection, all are broken—in DOM tree their elements simply do not get assigned their respective classes).

Version

3.38.1 (I tried all of them up to 3.40.1)

What browsers are you seeing the problem on?

Other, Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 39 (14 by maintainers)

Most upvoted comments

Odd, ok, well, I will try to get this merged soon, and we can test it with the nightly route instead. Thank you very much though for trying, it’s appreciated.

Got it. Will have another go at reproducing the fix in the repro repository shortly…

Thanks for reacting quickly! I was suspecting some conflict of this sort, but couldn’t spot any duplicates. I made sure that among installed packages there was only one version of @adobe/react-spectrum and only one version of @react-spectrum/list (confirmed by lockfile inspection). However, the script in FAQ actually did report multiple versions of

@internationalized/date (2)      - 3.5.6, 3.7.0
@internationalized/message (2)   - 3.1.5, 3.1.6
@internationalized/number (2)    - 3.5.4, 3.6.0
@internationalized/string (2)    - 3.2.4, 3.2.5
@react-aria/focus (2)            - 3.18.4, 3.20.1
@react-aria/i18n (2)             - 3.12.3, 3.12.7
@react-aria/interactions (2)     - 3.22.4, 3.24.1
@react-aria/overlays (2)         - 3.23.4, 3.26.1
@react-aria/ssr (2)              - 3.9.6, 3.9.7
@react-aria/utils (2)            - 3.25.3, 3.28.1
@react-aria/visually-hidden (2)  - 3.8.17, 3.8.21
@react-spectrum/icon (2)         - 3.7.16, 3.8.3
@react-spectrum/provider (2)     - 3.10.3, 3.9.12
@react-spectrum/utils (2)        - 3.11.11, 3.12.3
@react-stately/overlays (2)      - 3.6.11, 3.6.14
@react-stately/utils (2)         - 3.10.4, 3.10.5
@react-types/button (2)          - 3.10.0, 3.11.0
@react-types/overlays (2)        - 3.8.10, 3.8.13
@react-types/provider (2)        - 3.8.4, 3.8.7
@react-types/shared (2)          - 3.25.0, 3.28.0
@spectrum-icons/workflow (2)     - 4.2.15, 4.2.19

So I’ll have to address that first.