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

id issue #1520

Open
tanjiarui opened this issue Nov 4, 2024 · 0 comments
Open

id issue #1520

tanjiarui opened this issue Nov 4, 2024 · 0 comments

Comments

@tanjiarui
Copy link

Hi there, I accidentally found the drag and drop operation failed when you setup the array index as UniqueIdentifier
for instance

const array = {'index': 0, 'item': 'a', 'index': 1, 'item': 'b'}
<SortableContext items={array.map(item => item['index'])}/>

you can never drag the first element in this case. i guess 0 recognized as false. is this situation deliberately designed?

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

No branches or pull requests

1 participant