From 2c851a340ba939b1f97cb90b64e30eaa4072f720 Mon Sep 17 00:00:00 2001 From: yuchi Xiong <48373109+yuchiXiong@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:18:26 +0800 Subject: [PATCH] fix(components): [input] the cursor is misplaced when type setting number (#15341) fix(components): [input] the cursor is misplaced when type setting number --- packages/theme-chalk/src/input.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/theme-chalk/src/input.scss b/packages/theme-chalk/src/input.scss index bf67f2f7ef..ccfd252d8c 100644 --- a/packages/theme-chalk/src/input.scss +++ b/packages/theme-chalk/src/input.scss @@ -242,6 +242,10 @@ &[type='password']::-ms-reveal { display: none; } + + &[type='number'] { + line-height: 1; + } } @each $slot in (prefix, suffix) {