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.25k stars 390 forks source link

[BUG] - Problem with MaskedBehavior - cursor doesn't position correctly #2300

Closed marcelozanetti closed 1 hour ago

marcelozanetti commented 3 hours ago

Is there an existing issue for this?

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

Current Behavior

I'm using the last version of Community Tookit MAUI (9.1.0), and MaskedBehavior dont work correctly. When I try to change any digit in the middle of the numbering, before any mask character, the cursor is thrown to the last position of the element.

https://github.com/user-attachments/assets/96fa408d-df22-49fd-ad38-bac4c9f6df50

Expected Behavior

The expected behavior is that the cursor is moved to the next position in the numbering, not to the end of the numbering.

Steps To Reproduce

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

Link to public reproduction project repository

-

Environment

Anything else?

No response

dotnet-policy-service[bot] commented 3 hours ago

Hi @marcelozanetti! We have added the https://github.com/CommunityToolkit/Maui/labels/needs%20reproduction label to this issue, which indicates that we are unable to take further action until you provide a reproduction sample that we can use to reproduce + fix your bug. In accordance with the Reporting a bug section of our Contributing.md that you confirmed reading before you submitted this Issue, we ask that every Issue author provide a link to an open-source repository containing the reproduction sample app. This issue will be closed automatically in 5 days if we do not receive a reproduction sample from you. Please feel free to re-open this Issue once you have provided a reproduction sample.

brminnick commented 1 hour ago

Duplicate: https://github.com/CommunityToolkit/Maui/issues/2301