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.
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.
Activity
[-]Prevent `readonly` and `disabled` Inputs from being edited[/-][+]Prevent `disabled` Inputs from being edited[/+]tkajtoch commentedon Apr 25, 2025
Hey @nickofthyme is this still needed considering the changes we did in #8239?
nickofthyme commentedon Apr 25, 2025
Yeah thanks, I forgot why I opened 2 issues but setting
readonlyto the value ofdisabledby default in #8271, fixes this issue.