We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
onDragStart callback in the valueRenderer props is not returning the full path of the json key.
onDragStart
valueRenderer
For example:
x.data[0].description
I'm not sure how to change this. I also created a stackblitz sandbox for you to test.
https://stackblitz.com/edit/stackblitz-starters-z1cita?file=src%2Fcomponents%2FViewer.jsx
valueRenderer={(raw, value, key) => ( <span draggable={true} onDragStart={(e) => { const updatedNamespace = selected.namespace.length > 0 ? [...selected.namespace, key] : [key]; const fullPath = updatedNamespace.join('.'); e.dataTransfer.setData('text/plain', fullPath); e.dataTransfer.setDragImage(document.createElement('span'), 0, 0); }} > {raw} </span> )}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
onDragStart
callback in thevalueRenderer
props is not returning the full path of the json key.For example:
x.data[0].description
but it just returns "description"I'm not sure how to change this. I also created a stackblitz sandbox for you to test.
https://stackblitz.com/edit/stackblitz-starters-z1cita?file=src%2Fcomponents%2FViewer.jsx
2023-11-22.15-43-22.mp4
The text was updated successfully, but these errors were encountered: