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

Bug fix for issues #424, #278, #163 #841

Closed
wants to merge 1 commit into from

Conversation

jneb
Copy link

@jneb jneb commented Nov 5, 2021

Disclaimer: I am only playing with this for an hour or so.
But this fix makes complete sense: the effect is that if an item is not dropped, there's no code that makes the dragged object visible again, making it disappear.
All I did was make sure that it is made visible at dragend regardless of the drop.
But I do think that I just fixed no less than three issues: #424 and two issues that appear to be the same (#278 and #163).
But I tested on only one machine.

Disclaimer: I am only playing with this for an hour or so.
But I do think that I just fixed no less than three issues: lukasoppermann#424 and two issues that appear to be the same (@278 and lukasoppermann#163).
But I tested on only one machine.
@jneb jneb changed the title Bug fix for issue #424 Bug fix for issues #424, #278, #163 Nov 5, 2021
@jneb
Copy link
Author

jneb commented Nov 5, 2021

See my comment at issue #424. The fix is almost right, but not quite.

Copy link
Author

@jneb jneb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That probably should rather be
dragging.style.display = dragging.oldDisplay delete dragging.oldDisplay
considering the changes for issue #777

Copy link
Author

@jneb jneb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that #777 fixes the issue, but this change is not visible in the current vversion.
In particular, it is the lines from 428:
if (dragging.oldDisplay !== undefined) { dragging.style.display = dragging.oldDisplay delete dragging.oldDisplay }
but they do not appear in the demo example.

@lukasoppermann
Copy link
Owner

Hey @jneb what is your latest take on this after investigating? Does this still fix the bugs?

Also please change it to single quotes to appease the gods of linting. Thanks.

@jneb
Copy link
Author

jneb commented Nov 7, 2021 via email

@lukasoppermann
Copy link
Owner

Hey, @jneb can you please fix the linting error so I can go ahead and merge it?

@jneb
Copy link
Author

jneb commented Nov 12, 2021 via email

@lukasoppermann
Copy link
Owner

Awesome, it's just a tiny change, but it blocks the merge. 😉

@jneb
Copy link
Author

jneb commented Nov 12, 2021

If I have a good look at the version of code this fix is merging with, it shouldn't be necessary to change anything at all!
There is code a few lines lower that looks like it does what my code was intended to do.
I'll do a final check but I am already almost convinced the current master branch is OK.

@jneb jneb closed this Nov 12, 2021
@jneb
Copy link
Author

jneb commented Nov 12, 2021

Yes, I checked it. The problems are caused by the "docs" directory containing an old version of the library, and some people (like me) being confused by that version.
Sorry for creating confusion and misinformation.

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.

2 participants