Skip to content

Commit b1ec4b9

Browse files
QDyanbingmeet-studentMadCcc
authored
fix(Input): keep OTP masked value hidden when selected (ant-design#57689)
Co-authored-by: 遇见同学 <1875694521@qq.com> Co-authored-by: SaltyC <madccc@foxmail.com>
1 parent 5cbc4e5 commit b1ec4b9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

components/input/style/otp.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const genOTPStyle: GenerateStyle<InputToken, CSSObject> = (token) => {
2929
[`${componentCls}-mask-input`]: {
3030
color: 'transparent',
3131
caretColor: token.colorText,
32+
'&::selection': {
33+
color: 'transparent',
34+
},
3235
},
3336
[`${componentCls}-mask-input[type=number]::-webkit-inner-spin-button`]: {
3437
'-webkit-appearance': 'none',

0 commit comments

Comments
 (0)