You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On iOS, when I use an Entry with IsPassword set to true and toggle the IsPassword property (to show/hide text), the Entry loses the previously typed text if I type more after setting IsPassword back to true. The issue does not occur on other platforms.
Description
On iOS, when I use an Entry with IsPassword set to true and toggle the IsPassword property (to show/hide text), the Entry loses the previously typed text if I type more after setting IsPassword back to true. The issue does not occur on other platforms.
Code snippet:
<Entry IsPassword="True" x:Name="entry" Background="Gray" Placeholder="Password" ReturnType="Done"/> <Button Text="click" Clicked="Button_Clicked"/>private void Button_Clicked(object sender, EventArgs e) { if (entry.IsPassword) { entry.IsPassword = false; } else { entry.IsPassword = true; } }Output demo
MAUIEntryVideo.mp4
Sample
MAUIEntrySample.zip
Steps to Reproduce
Output:
The previously entered text in the Entry is cleared when typing new text after setting IsPassword back to true. This only happens on iOS.
Expected:
The Entry should retain the previously typed text when toggling IsPassword, as it does on other platforms.
Link to public reproduction project repository
No response
Version with bug
10.0.0-preview.5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 18.5
Did you find any workaround?
No response
Relevant log output