fix: disabled inputs are not trucated
This commit is contained in:
parent
a777db1234
commit
8cff40fdd4
@ -82,10 +82,12 @@ function changePasswordFieldType(event) {
|
||||
if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
|
||||
if (element.type === 'password') {
|
||||
element.type = 'text';
|
||||
if (element.disabled) return;
|
||||
element.classList.add('truncate');
|
||||
this.type = 'text';
|
||||
} else {
|
||||
element.type = 'password';
|
||||
if (element.disabled) return;
|
||||
element.classList.remove('truncate');
|
||||
this.type = 'password';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user