File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,6 @@ function serializeNode(
237
237
tagName === 'select'
238
238
) {
239
239
const value = ( n as HTMLInputElement | HTMLTextAreaElement ) . value ;
240
- const needBlockTextarea =
241
- tagName === 'textarea' && maskInputOptions . textarea ;
242
240
if (
243
241
attributes . type !== 'radio' &&
244
242
attributes . type !== 'checkbox' &&
@@ -248,7 +246,7 @@ function serializeNode(
248
246
) {
249
247
attributes . value =
250
248
maskInputOptions [ attributes . type as keyof MaskInputOptions ] ||
251
- needBlockTextarea
249
+ maskInputOptions [ tagName as keyof MaskInputOptions ]
252
250
? '*' . repeat ( value . length )
253
251
: value ;
254
252
} else if ( ( n as HTMLInputElement ) . checked ) {
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export type MaskInputOptions = Partial<{
83
83
time : boolean ;
84
84
url : boolean ;
85
85
week : boolean ;
86
- // unify textarea element with text input
86
+ // unify textarea and select element with text input
87
87
textarea : boolean ;
88
+ select : boolean ;
88
89
} > ;
You can’t perform that action at this time.
0 commit comments