Skip to content

Password type text input displays multiple asterisks for some characters #735

@milokhiggins

Description

@milokhiggins

For example entering a single £ will display ** instead of *.
This should reproduce in the "Demo" sample, which has a password input field.

This is a minor issue but it could confuse the end user, especially since backspace will remove individual asterisks.

From investigating this issue, I think the cause of the issue is that the password input element does not properly handle multibyte UTF8 characters when transforming the string into asterisks. So a 2 byte character becomes 2 asterisks, a 3 byte character becomes 3 asterisks, etc.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions