This repository was archived by the owner on May 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +0
-30
lines changed Expand file tree Collapse file tree 4 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,6 @@ class DatBoolean extends React.Component {
35
35
} ) ;
36
36
}
37
37
38
- shouldComponentUpdate ( nextProps , nextState ) {
39
- return nextProps . id !== this . props . id ||
40
- nextProps . path !== this . props . path ||
41
- nextProps . label !== this . props . label ||
42
- nextState . value !== this . state . value ;
43
- }
44
-
45
38
getValue ( props = this . props ) {
46
39
return result ( props . data , props . path ) ;
47
40
}
Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ class DatButton extends React.Component {
12
12
this . handleClick = this . handleClick . bind ( this ) ;
13
13
}
14
14
15
- shouldComponentUpdate ( nextProps , nextState ) {
16
- return nextProps . label !== this . props . label ;
17
- }
18
-
19
15
handleClick ( event ) {
20
16
}
21
17
Original file line number Diff line number Diff line change @@ -48,17 +48,6 @@ class DatNumber extends React.Component {
48
48
} ) ;
49
49
}
50
50
51
- shouldComponentUpdate ( nextProps , nextState ) {
52
- return nextProps . id !== this . props . id ||
53
- nextProps . path !== this . props . path ||
54
- nextProps . label !== this . props . label ||
55
- nextProps . _labelWidth !== this . props . _labelWidth ||
56
- nextProps . min !== this . props . value ||
57
- nextProps . max !== this . props . value ||
58
- nextProps . step !== this . props . value ||
59
- nextState . value !== this . state . value ;
60
- }
61
-
62
51
getValue ( props = this . props ) {
63
52
return this . applyConstraints ( result ( props . data , props . path ) ) ;
64
53
}
Original file line number Diff line number Diff line change @@ -33,14 +33,6 @@ class DatString extends React.Component {
33
33
} ) ;
34
34
}
35
35
36
- shouldComponentUpdate ( nextProps , nextState ) {
37
- return nextProps . id !== this . props . id ||
38
- nextProps . path !== this . props . path ||
39
- nextProps . label !== this . props . label ||
40
- nextProps . _labelWidth !== this . props . _labelWidth ||
41
- nextState . value !== this . state . value ;
42
- }
43
-
44
36
getValue ( props = this . props ) {
45
37
return result ( props . data , props . path ) ;
46
38
}
You can’t perform that action at this time.
0 commit comments