react-beautiful-dnd
react-beautiful-dnd copied to clipboard
Unable to find draggable with id: item1, please help me
@sairede try removing react's strict mode
Not a fix, but it helped me. Hopefully works for you too.
Thanks @rizwanliaqat97 it worked
@rizwanliaqat97 it works, thanks
@rizwanliaqat97 , tried it and it worked for me as well
@rizwanliaqat97 Oh my goodness it works, thank you
@rizwanliaqat97 omg it works!!!! thankyou
Can someone check this issue please. I am not able to understand what is the issue in this example https://codesandbox.io/s/staging-field-ej6ghv?file=/src/App.js
Can someone check this issue please. I am not able to understand what is the issue in this example https://codesandbox.io/s/staging-field-ej6ghv?file=/src/App.js
@Patil-Mayur in your index.js
file change this...
root.render(
<StrictMode>
<App />
</StrictMode>
);
into this...
root.render(<App />);
like I said above, just remove the react's strict mode
Thanks @rizwanliaqat97. This saved my day!.
@rizwanliaqat97 It worked !!!
I was facing the same issue and when I removed the StrictMode
as suggested it worked but then I found a repo which was using the StrictMode
but not using root.render
and it also worked for me.
So in the App.js
file, instead of using this:
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
I replaced with:
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
@sairede try removing react's strict mode
Not a fix, but it helped me. Hopefully works for you too.
thanks. It's very helpful to me!!!
@jessicaribeiroalves That will disable concurrent features in React 18: Unable to find draggable with id
StrictMode also serves a purpose. It would be nice to see a fix for this that works with StrictMode.
@Audiopolis yep you're right. I was trying to avoid removing the StrictMode
while there's no fix for this bug. But the solution I suggested also has side effects. Anyways I think we'll have to wait for a fix for it to work properly.
We are in 2023... Any fix so far? We should not have to remove StrictMode, it sounds like a "gambiarra" (google it)...
We are in 2023... Any fix so far? We should not have to remove StrictMode, it sounds like a "gambiarra" (google it)...
The maintenance notice in the README seems to indicate that this will never be fixed.
We are in 2023... Any fix so far? We should not have to remove StrictMode, it sounds like a "gambiarra" (google it)...
I put a key in Droppable (like the name of the column)
ps: brasila aqui tb