aboutsummaryrefslogtreecommitdiff
path: root/node_modules.patch
blob: 716a9c9c1ff68e28290eaea88386a286620212f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- node_modules/virtual-dom/vdom/apply-properties.js
+++ node_modules/virtual-dom/vdom/apply-properties.js
@@ -36,9 +36,7 @@
                     node.removeAttribute(attrName)
                 }
             } else if (propName === "style") {
-                for (var i in previousValue) {
-                    node.style[i] = ""
-                }
+                node.style = ""
             } else if (typeof previousValue === "string") {
                 node[propName] = ""
             } else {


--- node_modules/virtual-dom/virtual-hyperscript/index.js
+++ node_modules/virtual-dom/virtual-hyperscript/index.js
@@ -40,16 +40,6 @@
         props.namespace = undefined;
     }

-    // fix cursor bug
-    if (tag === 'INPUT' &&
-        !namespace &&
-        props.hasOwnProperty('value') &&
-        props.value !== undefined &&
-        !isHook(props.value)
-    ) {
-        props.value = softSetHook(props.value);
-    }
-
     transformProperties(props);

     if (children !== undefined && children !== null) {