React-beautiful-dnd: Giving an id of "0" (zero) to a draggable item will cause an error.

Created on 23 Nov 2018  路  3Comments  路  Source: atlassian/react-beautiful-dnd

If an id of 0 is given to an item, it will blow up with the following error:

Invariant failed: Draggable requires a draggableId

more information required

Most helpful comment

Are you passing in a number? it is required to be a string...

All 3 comments

Are you passing in a number? it is required to be a string...

We are closing this issue due to inactivity. If you would like to continue the conversation feel free to reply to this issue and we can reopen it if needed.

Just for everyone to know. I had the same problem and it had to do with the fact that 0 was a number. Cast it to string and everything is fine.

Was this page helpful?
0 / 5 - 0 ratings