Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] [MauiCompat] unexpected behavior in mask XX:XX #1981

Open
barnasoba opened this issue Aug 27, 2023 · 0 comments
Open

[Bug] [MauiCompat] unexpected behavior in mask XX:XX #1981

barnasoba opened this issue Aug 27, 2023 · 0 comments
Labels
bug Something isn't working. Breaky break. maui-compat

Comments

@barnasoba
Copy link

Description

When using the MaskedBehavior with a mask set as "XX:XX" for an Entry control, the cursor positioning behaves unexpectedly after the third character is entered. This causes the fourth character to be inserted in the wrong position, and the resultant format becomes incorrect.

Stack Trace

N/A (Not a crash, but unexpected UI behavior)

Steps to Reproduce

  1. Create an Entry control in XAML with the MaskedBehavior set to "XX:XX".
  2. Type four consecutive numbers.
  3. Observe the cursor position and the resulting text in the Entry after the third character.

Expected Behavior

The text in the Entry should format correctly to "12:34" (given the numbers "1234" as input).

Actual Behavior

After entering the third number, the cursor repositions incorrectly, and entering the fourth number results in a format like "14:23".

@barnasoba barnasoba added bug Something isn't working. Breaky break. maui-compat labels Aug 27, 2023
@barnasoba barnasoba changed the title [Bug] [MauiCompat] [Bug] [MauiCompat] unexpected behavior in mask XX:XX Aug 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working. Breaky break. maui-compat
Projects
None yet
Development

No branches or pull requests

1 participant