Skip to content

Commit d5e8422

Browse files
authored
fix(VirtualInput): 去掉不必要的 min-height,修正右对齐时光标位置 (#6994)
1 parent 55660c5 commit d5e8422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/virtual-input/virtual-input.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
z-index: 1;
3131
width: 100%;
3232
max-width: 100%;
33-
min-height: 1.5em;
3433
overflow-y: hidden;
3534
overflow-x: scroll;
3635
letter-spacing: 1px;
@@ -49,6 +48,7 @@
4948
height: 10px;
5049
position: absolute;
5150
opacity: 0;
51+
left: 0; // 右对齐时,元素不会占位而导致光标错位
5252
}
5353

5454
&-placeholder {

0 commit comments

Comments
 (0)