Skip to content

MAUI Entry Control: Pasted Password Becomes Visible When IsPassword Is Enabled. #30263

@aruljenithberkmans

Description

@aruljenithberkmans

Description

When using the MAUI Entry control with IsPassword enabled, text entry and masking initially work as expected. However, if you copy and paste a password into the same Entry control again, the pasted password is shown in plain text rather than masked, despite the show/hide password icon remaining present.

This results in inconsistent and unexpected behavior that can potentially compromise password confidentiality.

Code snippet:

        <Entry x:Name="txtPassword"
               FontSize="13"
               Placeholder="Enter password"
               FontFamily="Roboto"
               IsPassword="True"
               IsSpellCheckEnabled="False"
               HeightRequest="32"/>

Output Demo

Screen.Recording.2025-06-26.175128.mp4

Sample

MAUI_TextBoxProject.zip

Steps to Reproduce

  1. Create a MAUI Entry control and set IsPassword="true".
  2. Run the app and focus into the password Entry field.
  3. Type a password; the input should be masked (as dots/bullets).
  4. Copy the entered password.
  5. Paste the copied password back into the same password Entry field.
  6. Observe the display of the pasted text.

Expected Behavior

After pasting, the password should remain masked (hidden), consistent with the IsPassword setting, and only be revealed if the user explicitly toggles the show password icon.

Actual Behavior

After pasting, the password is displayed in plain text instead of being masked, even though the show password icon is still shown. This reveals the pasted password to the user and potentially others viewing the screen, which is a security issue.

Link to public reproduction project repository

No response

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

Windows and Android

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

area-controls-labelLabel, Spanpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions