Skip to content

Commit 0722170

Browse files
author
Edward Xiao
committed
- Disable check() when onFocus.
1 parent 57a06c1 commit 0722170

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/js/Inputs/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class Index extends React.Component<Props, State> {
180180
onFocus(e: React.FocusEvent<HTMLElement>) {
181181
const { onFocus } = this.props;
182182
if (onFocus) {
183-
this.check();
183+
// this.check();
184184
onFocus(e);
185185
}
186186
}

src/js/Inputs/Textarea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class Index extends React.Component<Props, State> {
196196
onFocus(e: React.FocusEvent<HTMLElement>) {
197197
const { onFocus } = this.props;
198198
if (onFocus) {
199-
this.check();
199+
// this.check();
200200
onFocus(e);
201201
}
202202
}

src/js/Inputs/Textbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Index extends React.Component<Props, State> {
208208
onFocus(e: React.FocusEvent<HTMLElement>) {
209209
const { onFocus } = this.props;
210210
if (onFocus) {
211-
this.check();
211+
// this.check();
212212
onFocus(e);
213213
}
214214
}

0 commit comments

Comments
 (0)