Browse Source

fix: checkbox code optimize

zhangyumei.0319 3 years ago
parent
commit
9b758ffdb3
1 changed files with 2 additions and 6 deletions
  1. 2 6
      packages/semi-ui/checkbox/checkbox.tsx

+ 2 - 6
packages/semi-ui/checkbox/checkbox.tsx

@@ -252,12 +252,8 @@ class Checkbox extends BaseComponent<CheckboxProps, CheckboxState> {
                         this.checkboxEntity = ref;
                     }}
                     focusInner={focusVisible && !focusOuter}
-                    onInputFocus={e => {
-                        this.handleFocusVisible(e);
-                    }}
-                    onInputBlur={e => {
-                        this.handleBlur(e);
-                    }}
+                    onInputFocus={this.handleFocusVisible}
+                    onInputBlur={this.handleBlur}
                 />
                 {
                     props.isCardType ?