react-rnd icon indicating copy to clipboard operation
react-rnd copied to clipboard

Internet Explorer 11 SCRIPT438: Object doesn't support property or method from

Open hanbar opened this issue 8 years ago • 4 comments

When trying to resize IE throws error from this function:

var toConsumableArray = function (arr) {
  if (Array.isArray(arr)) {
    for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];

    return arr2;
  } else {
    return Array.from(arr);
  }
};

and does not resize the div.

hanbar avatar Apr 17 '18 13:04 hanbar

re-resizable also has same issue

chenmqiang avatar Jun 07 '18 02:06 chenmqiang

Fixed this with a shim from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Polyfill

Performance is still bad in IE11. Probably more an issue with draggable though

jeff-wolff avatar Jun 07 '18 16:06 jeff-wolff

@hanbar @go299 @jeff-wolff I've fixed this issue by this PR https://github.com/bokuweb/re-resizable/pull/283. Could you please try latest version if you get a chance :)

bokuweb avatar Jun 07 '18 23:06 bokuweb

fixed by bokuweb/re-resizable#283

bokuweb avatar Jun 12 '18 06:06 bokuweb