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
Uncaught Invariant Violation: Expected to find a valid target. #559
Comments
DND and a little buggy.
|
I'm getting the same error. I think it's because the Currently it's set to |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I'm having the same issue with dragging a tag and throwing the invariant error about not being able to find a target. Same as above, except
Some potential causes is inconsistent ids (maybe based on their position on the array) and keys. We'll see if I can make any progress on my own error. edit: it seems like ReactTags (or my own code somewhere...) is adding the index to the key of the Tag, which needs to not happen so that dnd can track the values, I think. This is likely happening in ReactTags.js, which was introduced in this commit to allow duplicate/unique tags. I'm not sure what to do, because if you remove the idx variable there, you can no longer have duplicate tags. Maybe @prakhar1989 has an idea. |
As mentioned in an issue, react-tags#559, if you drag and drop, React DND throws an invariant issue. This change makes it so if you pass in a third property to each of your tags, you can have drag and drop. I haven't tested any other usecases beyond mine though, so if anyone else wanted to confirm this works for them, that would be appreciated. Meanwhile, the change can be made in your local `node_modules\react-tag-input\dist-modules\components\ReactTags.js#523`
* fix drag and drop not working As mentioned in an issue, #559, if you drag and drop, React DND throws an invariant issue. This change makes it so if you pass in a third property to each of your tags, you can have drag and drop. I haven't tested any other usecases beyond mine though, so if anyone else wanted to confirm this works for them, that would be appreciated. Meanwhile, the change can be made in your local `node_modules\react-tag-input\dist-modules\components\ReactTags.js#523` * update Tag shape to include new key property Co-authored-by: TankorSmash <tankorsmash+github@gmail.com>
Uncaught Invariant Violation: Expected to find a valid target.
I'm facing this issue when I drag a tag.
Envs:
A related tag here: Uncaught Error: Invariant Violation: Expected to find a valid target
The text was updated successfully, but these errors were encountered: