I'm a little baffled as to why this isn't working as expected.
The input I have is being masked successfully, but when the text is selected, it shows the actual value.
To address this issue, I want to prevent users from highlighting the input text. While some may argue that this compromises usability, I am specifically focusing on touchscreens where excessive tapping could lead to unwanted selections.
Although I've tried adding
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
to both inputs, the selection still persists. Are there any alternative methods to achieve this? This is all the information I could gather during my search.
Feel free to experiment with a fiddle of the issue here.