This repository was archived by the owner on Aug 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,6 @@ function createControlClass(s) {
157
157
this . handleLoad ( ) ;
158
158
}
159
159
160
- UNSAFE_componentWillReceiveProps ( { modelValue } ) {
161
- if ( modelValue !== this . props . modelValue ) {
162
- this . setViewValue ( modelValue ) ;
163
- }
164
- }
165
-
166
160
shouldComponentUpdate ( nextProps , nextState ) {
167
161
return ! shallowEqual ( this . props , nextProps , {
168
162
deepKeys : [ 'controlProps' ] ,
@@ -388,6 +382,13 @@ function createControlClass(s) {
388
382
return this . props . getValue ( event , this . props ) ;
389
383
}
390
384
385
+ /* eslint-disable camelcase */
386
+ UNSAFE_componentWillReceiveProps ( { modelValue } ) {
387
+ if ( modelValue !== this . props . modelValue ) {
388
+ this . setViewValue ( modelValue ) ;
389
+ }
390
+ }
391
+
391
392
handleIntents ( ) {
392
393
const {
393
394
model,
Original file line number Diff line number Diff line change @@ -101,12 +101,6 @@ function createFormClass(s = defaultStrategy) {
101
101
clearGetFormCacheForModel ( this . props . model ) ;
102
102
}
103
103
104
- UNSAFE_componentWillReceiveProps ( nextProps ) {
105
- if ( containsEvent ( nextProps . validateOn , 'change' ) ) {
106
- this . validate ( nextProps ) ;
107
- }
108
- }
109
-
110
104
shouldComponentUpdate ( nextProps , nextState ) {
111
105
return deepCompareChildren ( this , nextProps , nextState ) ;
112
106
}
@@ -123,6 +117,13 @@ function createFormClass(s = defaultStrategy) {
123
117
}
124
118
}
125
119
120
+ /* eslint-disable camelcase */
121
+ UNSAFE_componentWillReceiveProps ( nextProps ) {
122
+ if ( containsEvent ( nextProps . validateOn , 'change' ) ) {
123
+ this . validate ( nextProps ) ;
124
+ }
125
+ }
126
+
126
127
handleUpdate ( ) {
127
128
if ( this . props . onUpdate ) {
128
129
this . props . onUpdate ( this . props . formValue ) ;
You can’t perform that action at this time.
0 commit comments