CommunityToolkit / Maui

The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
https://learn.microsoft.com/dotnet/communitytoolkit/maui
MIT License
2.28k stars 404 forks source link

MaskedBehavior Cursor jumps to end on editing text #2301

Open LeoJHarris opened 4 weeks ago

LeoJHarris commented 4 weeks ago

Is there an existing issue for this?

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

The mask jumps when editing/removing or adding text

https://github.com/user-attachments/assets/dd6106dc-ea97-49c1-bb6d-bb881f77ef28

Expected Behavior

The mask should not update and remove text or add text where the cursor is without jumping

Steps To Reproduce

  1. Open sample an type into the entry field.
  2. Attempt to remove characters and adding new ones in each of the segments of the masked input

Link to public reproduction project repository

https://github.com/LeoJHarris/CommunityToolkit_JumpingMaskBehavior.git

Environment

Toolkit 9.1.0 Android 34 MAUI 8.0.92

See project sample for details.

Anything else?

No response