adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
12.96k stars 1.13k forks source link

Exception when dragging items in RAC ListBox with sections #7025

Open janvorwerk opened 1 month ago

janvorwerk commented 1 month ago

Provide a general summary of the issue here

The drag and drop between two flat ListBox worked well.

However, as soon as I add Sections to the listbox, there is an undefined somewhere... and that leads to many exceptions in the console.

In my app (not the sandbox), there is no visible effect beside the exceptions in the console.

๐Ÿค” Expected Behavior?

There should be no exception

๐Ÿ˜ฏ Current Behavior

There are exceptions (seems related to mouse move)

๐Ÿ’ Possible Solution

No response

๐Ÿ”ฆ Context

No response

๐Ÿ–ฅ๏ธ Steps to Reproduce

https://codesandbox.io/p/sandbox/sweet-shamir-q3r72w

Drag an item from the left to the right => observe

Version

react-aria-components@1.3.3

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

If other, please specify.

No response

What operating system are you using?

macOS 14.6.1

๐Ÿงข Your Company/Team

No response

๐Ÿ•ท Tracking Issue

No response

snowystinger commented 1 month ago

Thanks for reporting and thanks for the codesandbox. Looks like a bug, I was able to reproduce in our storybook as well.

devongovett commented 1 month ago

Drag and drop with sections isn't yet supported (ie this has never worked), so I think this is more of a feature request! ๐Ÿ˜Š