-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
ng-sortable doesn't work in Safari 8 #285
Comments
I can confirm this - same versions of OS X/Safari. It's working in Chrome 40 for me. Unfortunately it's not clear at all what's wrong. No error messages, it just doesn't do anything. |
Actually, this probably isn't related to |
Lots of console.logs later, I've traced it (I think) to this line: In Chrome, this condition is met, but not in Safari 8. If I can figure out what's going on I'll submit a PR. |
@RubaXa I saw you added an angular label - it's not really angular that's the problem though, it's |
Yes, you're right, it just does not work 0_o. |
https://github.com/RubaXa/Sortable/blob/master/Sortable.js#L485 — (!) |
I'm not sure if that's it... I found some odd behavior in Safari related to the line I mentioned earlier: https://github.com/RubaXa/Sortable/blob/master/Sortable.js#L662 Logging both of the elements in that condition gives me different results in Safari vs Chrome. Safari 8:
But, in Chrome 40, logging both elements, I get:
|
ack, sorry, editing message - put wrong info in it |
So, in Safari 8, for both elements it has the comment nodes injected by |
Try dev-branch. |
@RubaXa Ah, you are my hero - that fixed it. |
Actually sorry that it happened, it's my fault that has not checked in Safari (although this is a bug in it). |
No worries, still a good library, thanks for writing it :) Спасибо огромное! |
Any way this could be covered in tests? |
Automatically? it's impossible, only manual testing. |
Well, it's probably doable with Saucelabs, but it's not trivial to set up. |
Not sure that Selenium correctly reproduces all events with drag and drop. |
I am on Mac Yosemite 10.10.2. The ng-sortable doesn't work in Safari 8. You can see this with your demo fiddle http://jsbin.com/naduvo/1/edit?html,js,output
The text was updated successfully, but these errors were encountered: