Skip to content

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

@HerbertsVaadin

Description

@HerbertsVaadin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions