@@ -14,10 +14,10 @@ import warning from 'shared/warning';
1414import warningWithoutStack from 'shared/warningWithoutStack' ;
1515
1616import * as DOMPropertyOperations from './DOMPropertyOperations' ;
17- import * as ReactDOMFiberInput from './ReactDOMFiberInput ' ;
18- import * as ReactDOMFiberOption from './ReactDOMFiberOption ' ;
19- import * as ReactDOMFiberSelect from './ReactDOMFiberSelect ' ;
20- import * as ReactDOMFiberTextarea from './ReactDOMFiberTextarea ' ;
17+ import * as ReactDOMInput from './ReactDOMInput ' ;
18+ import * as ReactDOMOption from './ReactDOMOption ' ;
19+ import * as ReactDOMSelect from './ReactDOMSelect ' ;
20+ import * as ReactDOMTextarea from './ReactDOMTextarea ' ;
2121import * as inputValueTracking from './inputValueTracking' ;
2222import setInnerHTML from './setInnerHTML' ;
2323import setTextContent from './setTextContent' ;
@@ -491,28 +491,28 @@ export function setInitialProperties(
491491 props = rawProps ;
492492 break ;
493493 case 'input ':
494- ReactDOMFiberInput . initWrapperState ( domElement , rawProps ) ;
495- props = ReactDOMFiberInput . getHostProps ( domElement , rawProps ) ;
494+ ReactDOMInput . initWrapperState ( domElement , rawProps ) ;
495+ props = ReactDOMInput . getHostProps ( domElement , rawProps ) ;
496496 trapBubbledEvent ( TOP_INVALID , domElement ) ;
497497 // For controlled components we always need to ensure we're listening
498498 // to onChange. Even if there is no listener.
499499 ensureListeningTo ( rootContainerElement , 'onChange' ) ;
500500 break ;
501501 case 'option ':
502- ReactDOMFiberOption . validateProps ( domElement , rawProps ) ;
503- props = ReactDOMFiberOption . getHostProps ( domElement , rawProps ) ;
502+ ReactDOMOption . validateProps ( domElement , rawProps ) ;
503+ props = ReactDOMOption . getHostProps ( domElement , rawProps ) ;
504504 break ;
505505 case 'select ':
506- ReactDOMFiberSelect . initWrapperState ( domElement , rawProps ) ;
507- props = ReactDOMFiberSelect . getHostProps ( domElement , rawProps ) ;
506+ ReactDOMSelect . initWrapperState ( domElement , rawProps ) ;
507+ props = ReactDOMSelect . getHostProps ( domElement , rawProps ) ;
508508 trapBubbledEvent ( TOP_INVALID , domElement ) ;
509509 // For controlled components we always need to ensure we're listening
510510 // to onChange. Even if there is no listener.
511511 ensureListeningTo ( rootContainerElement , 'onChange' ) ;
512512 break ;
513513 case 'textarea ':
514- ReactDOMFiberTextarea . initWrapperState ( domElement , rawProps ) ;
515- props = ReactDOMFiberTextarea . getHostProps ( domElement , rawProps ) ;
514+ ReactDOMTextarea . initWrapperState ( domElement , rawProps ) ;
515+ props = ReactDOMTextarea . getHostProps ( domElement , rawProps ) ;
516516 trapBubbledEvent ( TOP_INVALID , domElement ) ;
517517 // For controlled components we always need to ensure we're listening
518518 // to onChange. Even if there is no listener.
@@ -537,19 +537,19 @@ export function setInitialProperties(
537537 // TODO: Make sure we check if this is still unmounted or do any clean
538538 // up necessary since we never stop tracking anymore.
539539 inputValueTracking . track ( ( domElement : any ) ) ;
540- ReactDOMFiberInput . postMountWrapper ( domElement , rawProps , false ) ;
540+ ReactDOMInput . postMountWrapper ( domElement , rawProps , false ) ;
541541 break ;
542542 case 'textarea ':
543543 // TODO: Make sure we check if this is still unmounted or do any clean
544544 // up necessary since we never stop tracking anymore.
545545 inputValueTracking . track ( ( domElement : any ) ) ;
546- ReactDOMFiberTextarea . postMountWrapper ( domElement , rawProps ) ;
546+ ReactDOMTextarea . postMountWrapper ( domElement , rawProps ) ;
547547 break ;
548548 case 'option ':
549- ReactDOMFiberOption . postMountWrapper ( domElement , rawProps ) ;
549+ ReactDOMOption . postMountWrapper ( domElement , rawProps ) ;
550550 break ;
551551 case 'select ':
552- ReactDOMFiberSelect . postMountWrapper ( domElement , rawProps ) ;
552+ ReactDOMSelect . postMountWrapper ( domElement , rawProps ) ;
553553 break ;
554554 default :
555555 if ( typeof props . onClick === 'function' ) {
@@ -578,23 +578,23 @@ export function diffProperties(
578578 let nextProps : Object ;
579579 switch ( tag ) {
580580 case 'input' :
581- lastProps = ReactDOMFiberInput . getHostProps ( domElement , lastRawProps ) ;
582- nextProps = ReactDOMFiberInput . getHostProps ( domElement , nextRawProps ) ;
581+ lastProps = ReactDOMInput . getHostProps ( domElement , lastRawProps ) ;
582+ nextProps = ReactDOMInput . getHostProps ( domElement , nextRawProps ) ;
583583 updatePayload = [ ] ;
584584 break ;
585585 case 'option' :
586- lastProps = ReactDOMFiberOption . getHostProps ( domElement , lastRawProps ) ;
587- nextProps = ReactDOMFiberOption . getHostProps ( domElement , nextRawProps ) ;
586+ lastProps = ReactDOMOption . getHostProps ( domElement , lastRawProps ) ;
587+ nextProps = ReactDOMOption . getHostProps ( domElement , nextRawProps ) ;
588588 updatePayload = [ ] ;
589589 break ;
590590 case 'select' :
591- lastProps = ReactDOMFiberSelect . getHostProps ( domElement , lastRawProps ) ;
592- nextProps = ReactDOMFiberSelect . getHostProps ( domElement , nextRawProps ) ;
591+ lastProps = ReactDOMSelect . getHostProps ( domElement , lastRawProps ) ;
592+ nextProps = ReactDOMSelect . getHostProps ( domElement , nextRawProps ) ;
593593 updatePayload = [ ] ;
594594 break ;
595595 case 'textarea' :
596- lastProps = ReactDOMFiberTextarea . getHostProps ( domElement , lastRawProps ) ;
597- nextProps = ReactDOMFiberTextarea . getHostProps ( domElement , nextRawProps ) ;
596+ lastProps = ReactDOMTextarea . getHostProps ( domElement , lastRawProps ) ;
597+ nextProps = ReactDOMTextarea . getHostProps ( domElement , nextRawProps ) ;
598598 updatePayload = [ ] ;
599599 break ;
600600 default :
@@ -773,7 +773,7 @@ export function updateProperties(
773773 nextRawProps . type === 'radio' &&
774774 nextRawProps . name != null
775775 ) {
776- ReactDOMFiberInput . updateChecked ( domElement , nextRawProps ) ;
776+ ReactDOMInput . updateChecked ( domElement , nextRawProps ) ;
777777 }
778778
779779 const wasCustomComponentTag = isCustomComponent ( tag , lastRawProps ) ;
@@ -793,15 +793,15 @@ export function updateProperties(
793793 // Update the wrapper around inputs *after* updating props. This has to
794794 // happen after `updateDOMProperties`. Otherwise HTML5 input validations
795795 // raise warnings and prevent the new value from being assigned.
796- ReactDOMFiberInput . updateWrapper ( domElement , nextRawProps ) ;
796+ ReactDOMInput . updateWrapper ( domElement , nextRawProps ) ;
797797 break ;
798798 case 'textarea' :
799- ReactDOMFiberTextarea . updateWrapper ( domElement , nextRawProps ) ;
799+ ReactDOMTextarea . updateWrapper ( domElement , nextRawProps ) ;
800800 break ;
801801 case 'select' :
802802 // <select> value update needs to occur after <option> children
803803 // reconciliation
804- ReactDOMFiberSelect . postUpdateWrapper ( domElement , nextRawProps ) ;
804+ ReactDOMSelect . postUpdateWrapper ( domElement , nextRawProps ) ;
805805 break ;
806806 }
807807}
@@ -876,24 +876,24 @@ export function diffHydratedProperties(
876876 trapBubbledEvent ( TOP_TOGGLE , domElement ) ;
877877 break ;
878878 case 'input' :
879- ReactDOMFiberInput . initWrapperState ( domElement , rawProps ) ;
879+ ReactDOMInput . initWrapperState ( domElement , rawProps ) ;
880880 trapBubbledEvent ( TOP_INVALID , domElement ) ;
881881 // For controlled components we always need to ensure we're listening
882882 // to onChange. Even if there is no listener.
883883 ensureListeningTo ( rootContainerElement , 'onChange' ) ;
884884 break ;
885885 case 'option' :
886- ReactDOMFiberOption . validateProps ( domElement , rawProps ) ;
886+ ReactDOMOption . validateProps ( domElement , rawProps ) ;
887887 break ;
888888 case 'select' :
889- ReactDOMFiberSelect . initWrapperState ( domElement , rawProps ) ;
889+ ReactDOMSelect . initWrapperState ( domElement , rawProps ) ;
890890 trapBubbledEvent ( TOP_INVALID , domElement ) ;
891891 // For controlled components we always need to ensure we're listening
892892 // to onChange. Even if there is no listener.
893893 ensureListeningTo ( rootContainerElement , 'onChange' ) ;
894894 break ;
895895 case 'textarea' :
896- ReactDOMFiberTextarea . initWrapperState ( domElement , rawProps ) ;
896+ ReactDOMTextarea . initWrapperState ( domElement , rawProps ) ;
897897 trapBubbledEvent ( TOP_INVALID , domElement ) ;
898898 // For controlled components we always need to ensure we're listening
899899 // to onChange. Even if there is no listener.
@@ -1087,13 +1087,13 @@ export function diffHydratedProperties(
10871087 // TODO: Make sure we check if this is still unmounted or do any clean
10881088 // up necessary since we never stop tracking anymore.
10891089 inputValueTracking . track ( ( domElement : any ) ) ;
1090- ReactDOMFiberInput . postMountWrapper ( domElement , rawProps , true ) ;
1090+ ReactDOMInput . postMountWrapper ( domElement , rawProps , true ) ;
10911091 break ;
10921092 case 'textarea ':
10931093 // TODO: Make sure we check if this is still unmounted or do any clean
10941094 // up necessary since we never stop tracking anymore.
10951095 inputValueTracking . track ( ( domElement : any ) ) ;
1096- ReactDOMFiberTextarea . postMountWrapper ( domElement , rawProps ) ;
1096+ ReactDOMTextarea . postMountWrapper ( domElement , rawProps ) ;
10971097 break ;
10981098 case 'select ':
10991099 case 'option ':
@@ -1212,13 +1212,13 @@ export function restoreControlledState(
12121212) : void {
12131213 switch ( tag ) {
12141214 case 'input ':
1215- ReactDOMFiberInput . restoreControlledState ( domElement , props ) ;
1215+ ReactDOMInput . restoreControlledState ( domElement , props ) ;
12161216 return ;
12171217 case 'textarea ':
1218- ReactDOMFiberTextarea . restoreControlledState ( domElement , props ) ;
1218+ ReactDOMTextarea . restoreControlledState ( domElement , props ) ;
12191219 return ;
12201220 case 'select ':
1221- ReactDOMFiberSelect . restoreControlledState ( domElement , props ) ;
1221+ ReactDOMSelect . restoreControlledState ( domElement , props ) ;
12221222 return ;
12231223 }
12241224}
0 commit comments