File tree 3 files changed +10
-2
lines changed
components/fixtures/number-inputs
packages/react-dom/src/client 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const React = window.React;
5
5
class NumberTestCase extends React . Component {
6
6
state = { value : '' } ;
7
7
onChange = event => {
8
- const parsed = parseFloat ( event . target . value , 10 ) ;
8
+ const parsed = parseFloat ( event . currentTarget . value , 10 ) ;
9
9
const value = isNaN ( parsed ) ? '' : parsed ;
10
10
11
11
this . setState ( { value} ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ const TAGS_CACHE_KEY = '@react-dom-fixtures/tags';
15
15
* can manually load it by editing the URL (`?version={whatever}`)
16
16
*/
17
17
const fallbackTags = [
18
+ '16.3.0' ,
19
+ '16.2.0' ,
20
+ '16.1.1' ,
18
21
'15.4.2' ,
19
22
'15.3.2' ,
20
23
'15.2.1' ,
Original file line number Diff line number Diff line change @@ -736,7 +736,12 @@ const DOMRenderer = ReactFiberReconciler({
736
736
oldText : string ,
737
737
newText : string ,
738
738
) : void {
739
- textInstance . nodeValue = newText ;
739
+ // IE9 will raise an exception if modifying a detached text node
740
+ // eslint-disable-next-line
741
+ // https://connect.microsoft.com/IE/feedbackdetail/view/944330/invalid-argument-error-when-changing-nodevalue-of-a-text-node-removed-by-setting-innerhtml-on-an-ancestor
742
+ if ( textInstance . parentNode ) {
743
+ textInstance . nodeValue = newText ;
744
+ }
740
745
} ,
741
746
742
747
appendChild (
You can’t perform that action at this time.
0 commit comments