Parcourir la source

firefox26数字输入退格完光标掉下bug修改2271

zhouna il y a 5 ans
Parent
commit
a9ec8a1d33
2 fichiers modifiés avec 17 ajouts et 1 suppressions
  1. 1 1
      src/components/NumberDrop/index.jsx
  2. 16 0
      src/components/NumberDrop/index.less

+ 1 - 1
src/components/NumberDrop/index.jsx

@@ -184,7 +184,7 @@ class NumberDrop extends Component{
     return className(isSelected,noTag,orgBorder);
   }
   getSpanClass(){       //将被替换的文字选中状态显示
-    const cls = this.props.show?style['blued']:'';
+    const cls = this.props.show?style['blued']:style['nol'];
     return cls;
   }
   stopBubble(e){

+ 16 - 0
src/components/NumberDrop/index.less

@@ -6,6 +6,14 @@
     background: @blue;
     color: #fff;
   }
+  .nol,.blued{
+    min-width:10px;
+    height: 22px;
+    vertical-align: text-bottom;
+    display:inline-block;
+    text-align:center;
+    word-break:break-all;
+  }
 }
 .selected{
   .selected-tag;
@@ -19,4 +27,12 @@
     background: @blue;
     color: #fff;
   }
+  .nol,.blued{
+    min-width:10px;
+    display:inline-block;
+    text-align:center;
+    word-break:break-all;
+    height: 22px;
+    vertical-align: text-bottom;
+  }
 }