- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.9k
 
Description
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
Steps to Reproduce
- Create a MAUI Entry control and set IsPassword="true".
 - Run the app and focus into the password Entry field.
 - Type a password; the input should be masked (as dots/bullets).
 - Copy the entered password.
 - Paste the copied password back into the same password Entry field.
 - 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