You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using LastPass or similar password management tools. Eui does not prevent these tools from editing disabled input values. This results in edited disabled values being saved. However, applying readonlydoes block the input value from being updated.
Environment and versions
EUI version: latest
To Reproduce
Steps to reproduce the behavior:
Create an EuiFieldText input with the name attribute set to 'username'.
Set input to disabled
Download any password manager
Create a password record on the current page
Refresh and fill the input using the password manager.
Expected behavior
Disabled inputs should never be editable.
Additional context
Attempting to use the solution from https://stackoverflow.com/a/28216951/6943587 does not work. Applying autocomplete="off" to the input and/or form, does not prevent the update of the input value.
Every solution I tried always resulted in the onChange handler being called. The most foolproof solution is to set readOnly whenever disabled is set, unless overridden by the user.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using LastPass or similar password management tools. Eui does not prevent these tools from editing
disabled
input values. This results in editeddisabled
values being saved. However, applyingreadonly
does block the input value from being updated.Environment and versions
latest
To Reproduce
Steps to reproduce the behavior:
EuiFieldText
input with thename
attribute set to'username'
.disabled
Zight.Recording.2024-12-13.at.01.45.53.PM.mp4
See demo: https://codesandbox.io/p/sandbox/adoring-christian-jk8t45
Expected behavior
Disabled inputs should never be editable.
Additional context
Attempting to use the solution from https://stackoverflow.com/a/28216951/6943587 does not work. Applying
autocomplete="off"
to the input and/or form, does not prevent the update of the input value.Every solution I tried always resulted in the
onChange
handler being called. The most foolproof solution is to setreadOnly
wheneverdisabled
is set, unless overridden by the user.The text was updated successfully, but these errors were encountered: