From 60ff75705ecd2c80c3856f46f323b3794f76c71a Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 27 Apr 2017 15:10:03 -0700 Subject: [PATCH] [fix] remove stray 'length' property from style object Fix #454 --- src/modules/NativeMethodsMixin/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/NativeMethodsMixin/index.js b/src/modules/NativeMethodsMixin/index.js index 09135021..37fcdb69 100644 --- a/src/modules/NativeMethodsMixin/index.js +++ b/src/modules/NativeMethodsMixin/index.js @@ -71,6 +71,9 @@ const NativeMethodsMixin = { const node = findNodeHandle(this); const classList = Array.prototype.slice.call(node.classList); const style = { ...node.style }; + // See #454 + delete style.length; + const domStyleProps = { classList, style }; // Next DOM state