Meteor demo doesn't work on IE11
Hi @dandv, I noticed that although the Sortable demo works on Internet Explorer 11, the meteor demo doesn't... any ideas? thanks!
I'm not sure if you see this as well, but I noticed that there were javascript errors in the console:
HTML1300: Navigation occurred.
File: rubaxa-sortable.meteor.com
DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
File: rubaxa-sortable.meteor.com
SEC7118: XMLHttpRequest for https://ddp--4589-rubaxa-sortable.meteor.com/sockjs/info?cb=x50w0dvgee&t=1437824619312 required Cross Origin Resource Sharing (CORS).
File: rubaxa-sortable.meteor.com
Exception from Tracker afterFlush function:
TypeError: Unable to set property 'Sortable1437824622089' of undefined or null reference
at Sortable (http://rubaxa-sortable.meteor.com/packages/rubaxa_sortable.js?a575a60843457b8568921e11d76b408374bbe881:214:3)
at Sortable.create (http://rubaxa-sortable.meteor.com/packages/rubaxa_sortable.js?a575a60843457b8568921e11d76b408374bbe881:1139:3)
at Template.sortable.rendered (http://rubaxa-sortable.meteor.com/packages/rubaxa_sortable.js?a575a60843457b8568921e11d76b408374bbe881:1392:2)
at Anonymous function (http://rubaxa-sortable.meteor.com/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3155:9)
at Template._withTemplateInstanceFunc (http://rubaxa-sortable.meteor.com/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:5)
at fireCallbacks (http://rubaxa-sortable.meteor.com/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3151:3)
at Anonymous function (http://rubaxa-sortable.meteor.com/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3244:5)
at Anony
Exception from Tracker afterFlush function:
TypeError: Unable to set property 'Sortable1437824622089' of undefined or null reference
at Sortable (http://rubaxa-sortable.meteor.com/packages/rubaxa_sortable.js?a575a60843457b8568921e11d76b408374bbe881:214:3)
at Sortable.create (http://rubaxa-sortable.meteor.com/packages/rubaxa_sortable.js?a575a60843457b8568921e11d76b408374bbe881:1139:3)
at Template.sortable.rendered (http://rubaxa-sortable.meteor.com/packages/rubaxa_sortable.js?a575a60843457b8568921e11d76b408374bbe881:1392:2)
at Anonymous function (http://rubaxa-sortable.meteor.com/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3155:9)
at Template._withTemplateInstanceFunc (http://rubaxa-sortable.meteor.com/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:5)
at fireCallbacks (http://rubaxa-sortable.meteor.com/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3151:3)
at Anonymous function (http://rubaxa-sortable.meteor.com/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3244:5)
at Anony
Hope that helps.
I had the same problem and investigated further. Don't know if the Sortable version above and my version are different but my exception was on line 194 instead of 214. On reactivize.js:194 firstNode.parentElement is used. It turned out that Internet Explorer (and Opera) does not support parentElement on text nodes [src], which I somehow had in my template instance.
I did a local copy of the package and replaced parentElement with parentNode and it seems to work at least for my use case. I have NO idea if this is really an allowed "fix". Leaving that decision to @dandv and hoping for a proper update.
Dear all! Meteor is moved to the separate repository. If this issue is still actual, please create it there once again.
For your info: this project needs a maintainer.