Disable highlight when user/pass grayed out
This commit is contained in:
parent
0c3d9d7287
commit
77c38cd17d
@ -50,6 +50,11 @@
|
||||
const hasToken = tokenInput.value.trim() !== '';
|
||||
[userInput, pwInput].forEach(el => {
|
||||
el.readOnly = hasToken;
|
||||
el.tabIndex = hasToken ? -1 : 0;
|
||||
el.style.pointerEvents = hasToken ? 'none' : '';
|
||||
if (hasToken && document.activeElement === el) {
|
||||
el.blur();
|
||||
}
|
||||
el.classList.toggle('bg-body-secondary', hasToken);
|
||||
el.classList.toggle('text-decoration-line-through', hasToken);
|
||||
el.classList.toggle('text-body-secondary', hasToken);
|
||||
|
Loading…
Reference in New Issue
Block a user