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

html5sortable.js: Object does not support 'assign' #21

Closed
6 of 14 tasks
Commifreak opened this issue Mar 20, 2019 · 4 comments
Closed
6 of 14 tasks

html5sortable.js: Object does not support 'assign' #21

Commifreak opened this issue Mar 20, 2019 · 4 comments

Comments

@Commifreak
Copy link

Commifreak commented Mar 20, 2019

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest master branch of yii2-sortable.
  • This is not an usage question. I confirm having gone through and read the documentation and demos.
  • This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
  • I have attempted to find the simplest possible steps to reproduce the issue.
  • I have included a failing test as a pull request (Optional).

Expected behavior and actual behavior

On IE, I get this error:

html5sortable.js (756,9): This object does not support the property or method "assign" (translated from german).

Code snip:

    function sortable(sortableElements, options) {
        // get method string to see if a method is called
        var method = String(options);
        // merge user options with defaultss
        options = Object.assign({

This leads to not functioning sortable in DynGrid config-page.

Any ideas whats wrong here?

On Yii 2.0.15.1 with jQuery 2.2.4

Environment

Browsers

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer 11
  • Safari

Operating System

  • Windows
  • Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version:
  • yii2-sortable version: 1.2.2
@adamwinn
Copy link

adamwinn commented Apr 4, 2019

I'm seeing this exact same issue too. kartik-v/yii2-dynagrid#214

@adamwinn
Copy link

adamwinn commented Apr 4, 2019

Add the following polyfill and it should work:

https://cdn.polyfill.io/v2/polyfill.js?features=default,Object.entries,Array.prototype.includes

lukasoppermann/html5sortable#445

@Commifreak
Copy link
Author

That worked!

@kartik-v
Copy link
Owner

kartik-v commented Apr 5, 2019

Thanks. Closing the issue.

@kartik-v kartik-v closed this as completed Apr 5, 2019
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

No branches or pull requests

3 participants