Browse Source

fix(switch): fix clicking on the edge of the switch cannot trigger change event, close #992 (#1006)

小丞同学 3 years ago
parent
commit
f0c382f7f6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/semi-foundation/switch/switch.scss

+ 2 - 2
packages/semi-foundation/switch/switch.scss

@@ -103,8 +103,8 @@ $module: #{$prefix}-switch;
     &-native-control {
 
         &[type="checkbox"] {
-            width: 100%;
-            height: 100%;
+            width: inherit;
+            height: inherit;
         }
         width: 100%;
         height: 100%;