react-rnd
react-rnd copied to clipboard
Internet Explorer 11 SCRIPT438: Object doesn't support property or method from
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.
re-resizable also has same issue
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
@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 :)
fixed by bokuweb/re-resizable#283