web-components icon indicating copy to clipboard operation
web-components copied to clipboard

PasswordField: revealing password moves the cursor to the front in Chrome

Open HerbertsVaadin opened this issue 3 months ago • 7 comments

Description

When I click the reveal button to show the password, the cursor is moved to the front of the input. password-field-moves-cursor-to-start 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

  1. Add the PasswordField component to your view.
  2. Enter some text
  3. Press the "reveal" button
  4. 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

HerbertsVaadin avatar May 16 '24 10:05 HerbertsVaadin