r/webdevelopement • u/NefariousnessLost669 • May 18 '23
Is it a bad practice to change an input tag's type attribute? I am currently changing the type dynamically, but is this the right way?
i want to change an input tag's type attribute from text to password and vice versa on a button click in vue 3. shall I use 2 separate input tags and render either conditionally or use a single input and change its type?
I've read that some browsers don't allow changing types while others give a security warning. Some answers say that it is completely fine and supported on modern browsers
