Open
Description
ResizeSensor throws an error:
Error in directive resize update hook: "TypeError: Cannot set property 'detach' of undefined"
Chrome points me to these lines:
this.detach = function (ev) {
ResizeSensor.detach(element, ev);
};
As in strict mode, this
is undefined
here.
Changing it to arrow function can solve the problem.
Metadata
Metadata
Assignees
Labels
No labels