Skip to content

Entry with IsPassword toggling loses previously entered text on iOS when IsPassword is re-enabled #30085

@aruljenithberkmans

Description

@aruljenithberkmans

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

  1. Run the app on iOS.
  2. Type some text in the Entry (password hidden, dots shown).
  3. Tap the button to set the IsPassword to false (text is now visible).
  4. Tap the Button again to set IsPassword to true (text hidden again).
  5. Try typing additional text in the Entry.

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

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions