node_modules/preact/compat/src/render.js in isomorfeus-preact-10.7.3 vs node_modules/preact/compat/src/render.js in isomorfeus-preact-10.8.0
- old
+ new
@@ -159,9 +159,18 @@
i = i.replace(/[A-Z0-9]/, '-$&').toLowerCase();
} else if (value === null) {
value = undefined;
}
+ // Add support for onInput and onChange, see #3561
+ // if we have an oninput prop already change it to oninputCapture
+ if (/^oninput/i.test(i)) {
+ i = i.toLowerCase();
+ if (normalizedProps[i]) {
+ i = 'oninputCapture';
+ }
+ }
+
normalizedProps[i] = value;
}
// Add support for array select values: <select multiple value={[]} />
if (