kartik-v / yii2-dynagrid

Turbo charge the Yii 2 GridView with personalized columns, page size, and themes.
http://demos.krajee.com/dynagrid
Other
74 stars 66 forks source link

IE11 - Object doesn't support property or method 'assign' #214

Closed adamwinn closed 5 years ago

adamwinn commented 5 years ago

Prerequisites

Steps to reproduce the issue

Setup Dynagrid and a DataProvider that allows for sorting. View the grid in IE11.

Expected behavior and actual behavior

When I follow those steps, I see... Error is shown.

jQuery.Deferred exception: Object doesn't support property or method 'assign' TypeError: Object doesn't support property or method 'assign'
   at sortable (https://site/assets/c92e3f8d0be9c026b31dad8166a5aea2/js/html5sortable.js:83:907)
   at KvHtml5Sortable.prototype._init (https://site/assets/c92e3f8d0be9c026b31dad8166a5aea2/js/kv-html5-sortable.js:11:28)
   at KvHtml5Sortable (https://site/assets/c92e3f8d0be9c026b31dad8166a5aea2/js/kv-html5-sortable.js:10:357)
   at Anonymous function (https://site/assets/c92e3f8d0be9c026b31dad8166a5aea2/js/kv-html5-sortable.js:11:442)
   at each (https://site/assets/00b40876bcb31f925b090f433d1ab742/jquery.js:29:158)
   at jQuery.prototype.each (https://site/assets/00b40876bcb31f925b090f433d1ab742/jquery.js:20:178)
   at $.fn.kvHtml5Sortable (https://site/assets/c92e3f8d0be9c026b31dad8166a5aea2/js/kv-html5-sortable.js:11:243)
   at Anonymous function (
SCRIPT438: Object doesn't support property or method 'assign'
File: jquery.js, Line: 252, Column: 384

I was expecting... No error

Environment

Browsers

Operating System

Libraries

Isolating the problem

adamwinn commented 5 years ago

Add the following polyfill and it should work:

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

https://github.com/lukasoppermann/html5sortable/issues/445

kartik-v commented 5 years ago

Thanks.