Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Drag-Drop feature #63

wants to merge 1 commit into from

Conversation

ridhishjain-zepto
Copy link

@ridhishjain-zepto ridhishjain-zepto commented Feb 8, 2020

#fixes #53

@@ -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"));
Copy link
Author

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?

Copy link
Member

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.

@ridhishjain-zepto
Copy link
Author

@negative0 any reviews?

@ridhishjain-zepto ridhishjain-zepto changed the title Alternate auth mechanism for web-gui Drag-Drop feature Mar 18, 2020
@negative0
Copy link
Member

@ridhishjain, would you like to complete this?

@ridhishjain-zepto
Copy link
Author

I've not checked the repo for a long time, if u can guide me through it?

@negative0
Copy link
Member

negative0 commented Jul 16, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ask user what to do on drag-and-drop
3 participants