Pārlūkot izejas kodu

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

zhouna 5 gadi atpakaļ
vecāks
revīzija
a9ec8a1d33

+ 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;
+  }
 }