-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Drag-Drop feature #63
base: master
Are you sure you want to change the base?
Conversation
@@ -70,6 +111,8 @@ const fileComponentSource = { | |||
endDrag(props, monitor, component) { | |||
// console.log("EndDrag", monitor.getDropResult()); | |||
console.log(props, "Component:", component); | |||
ReactDOM.render(modalElement, document.getElementById("modalElement")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that here we'll have to wait for the component to be rendered and processed completely and only after that getting the value of operation
will be possible.
As of now, before the element is rendered completely, the code runs to console.log(operation);
and then to try block ignoring the modalElement
.......can Async-Await deal with this problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One way to go about it could be to delay the calling of performCopyMoveOperation()
till the modal opens and closes.
@negative0 any reviews? |
@ridhishjain, would you like to complete this? |
I've not checked the repo for a long time, if u can guide me through it? |
Sure. What do you need?
…On Thu, 16 Jul, 2020, 3:50 AM ridhishjain, ***@***.***> wrote:
I've not checked the repo for a long time, if u can guide me through it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5LNYBLPJO53WMR4WLIR4DR3YTRHANCNFSM4KR4BS3A>
.
|
#fixes #53