-
Notifications
You must be signed in to change notification settings - Fork 8
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
Not working with ie 11 #1
Comments
Thanks for letting me know :) from a quick look it might be fixed by changing I'll have a look tomorrow when I have a Windows VM handy. |
That is a problem in your demo page, however dragster.js is not working in IE because of the luck of: would it be possible to replace CustomEvent with: var evt = document.createEvent("CustomEvent"); as suggested here: |
Any updates on this issue |
Sorry everyone, I haven't looked at this repo for ages. #9 fixes this apparently - I don't have IE available for the next few days, can anyone confirm @christophermina's rewrite fixes this issue for you? |
I can confirm the pull request is working! |
Interestingly, added CSS-classes don't change the DOM in IE and Edge while "dragster:enter" event. Even jQuery $('#object').css('display', 'block'); doesn't change anything. Also interestingly the new styles are getting visible on next change, for example if you have :hover styles but i was not able to trigger rerendering while drag. To reproduce:
Now if the targeted DOM-element has some :hover CSS-style and you didn't remove the added class on dragster:leave you can hover the element. NOW the styles are shown. |
I found a solution for this css-rerendering bug on IE. Im using jQuery, but this may work also for plain JavaScript. My code looks like this:
|
line 264:
e.dataTransfer.setData('text/plain', '')
gives an error.
The text was updated successfully, but these errors were encountered: