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 +16
-5
lines changed
dev/src/react-dat-gui/components Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -6874,6 +6874,12 @@ var DatNumber = function (_Component) {
6874
6874
6875
6875
return value.toFixed(decimalPlaces);
6876
6876
}
6877
+
6878
+ /**
6879
+ * @deprecated This has been deprecated for now and is no longer applied to the
6880
+ * component onBlur.
6881
+ */
6882
+
6877
6883
}, {
6878
6884
key: 'update',
6879
6885
value: function update() {
@@ -6939,8 +6945,7 @@ var DatNumber = function (_Component) {
6939
6945
value: this.state.value,
6940
6946
style: { width: inputWidth + '%' },
6941
6947
onChange: this.handleChange,
6942
- onFocus: this.handleFocus,
6943
- onBlur: this.handleBlur
6948
+ onFocus: this.handleFocus
6944
6949
})
6945
6950
)
6946
6951
);
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ export default class DatNumber extends Component {
72
72
document . addEventListener ( 'keydown' , this . handleKeyDown ) ;
73
73
}
74
74
75
+ /**
76
+ * @deprecated This has been deprecated for now and is no longer applied to the
77
+ * component onBlur.
78
+ */
75
79
handleBlur = event => {
76
80
const value = this . applyConstraints ( event . target . value ) ;
77
81
@@ -147,7 +151,6 @@ export default class DatNumber extends Component {
147
151
style = { { width : `${ inputWidth } %` } }
148
152
onChange = { this . handleChange }
149
153
onFocus = { this . handleFocus }
150
- onBlur = { this . handleBlur }
151
154
/>
152
155
</ label >
153
156
</ li >
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ export default class DatNumber extends Component {
72
72
document . addEventListener ( 'keydown' , this . handleKeyDown ) ;
73
73
}
74
74
75
+ /**
76
+ * @deprecated This has been deprecated for now and is no longer applied to the
77
+ * component onBlur.
78
+ */
75
79
handleBlur = event => {
76
80
const value = this . applyConstraints ( event . target . value ) ;
77
81
@@ -147,7 +151,6 @@ export default class DatNumber extends Component {
147
151
style = { { width : `${ inputWidth } %` } }
148
152
onChange = { this . handleChange }
149
153
onFocus = { this . handleFocus }
150
- onBlur = { this . handleBlur }
151
154
/>
152
155
</ label >
153
156
</ li >
You can’t perform that action at this time.
0 commit comments