web-components
web-components copied to clipboard
PasswordField: revealing password moves the cursor to the front in Chrome
Description
When I click the reveal button to show the password, the cursor is moved to the front of the input.
On Firefox this works as expected.
Expected outcome
Cursor remains at the end of the input.
Minimal reproducible example
Can be replicated even in Vaadin docs:
<vaadin-password-field label="Password" value="Ex@mplePassw0rd"></vaadin-password-field>
Steps to reproduce
- Add the PasswordField component to your view.
- Enter some text
- Press the "reveal" button
- Notice how the cursor moves to the front of input.
Environment
Vaadin version(s): 24.3.12 OS: Windows 11 Browser: Chrome 125.0.6422.61
Browsers
Chrome