P
P
Pavel M2022-03-30 13:55:07
React
Pavel M, 2022-03-30 13:55:07

How to style mask separately from input value?

how to make the mask remain one color, and the text in the input another? I use react-input-mask

mm/dd/yyyy - everything except / is red.

I start typing: 15/2d/yyyy

15/2 - in black
d/yyyy - blank mask remains red.

in fact, the mask and input value are one and the same, and you can’t do without dancing with a tambourine, but how to get rid of a little blood?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question