CommunityToolkit / CommunityToolkit/Maui
[BUG] MaskedBehaviour change keyboard
- Dominant language
- C#
- Stars
- 2.7k
- Forks
- 500
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Did you read the "Reporting a bug" section on Contributing file?
- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
### Current Behavior
Hello,
I'm using MaskedBehavior to input a license plate, the mask is XX-XX-XX
When I put, for example, AA-44-AA, the keyboard changes to text when I'm putting numbers.
Attached I include a video demonstrating
https://github.com/user-attachments/assets/12a08678-f1cf-42d3-956a-0579091b2da4
### Expected Behavior
Function how entry when there is no mask
### Steps To Reproduce
1. Put entry with this XAML
```
```
2. Start writing A then A then 1
3. The keyboard automatically changes the type
### Link to public reproduction project repository
https://github.com/DanielSCBO/MaskedBehaviourKeyboardBug
### Environment
```markdown
- .NET MAUI CommunityToolkit: 9.1.1
- OS: Android
- .NET MAUI: 8.0.100
```
### Anything else?
_No response_
Contributor guide
Research direction
Start with the MaskedBehavior entry point and reproduce the XAML example from the issue on Android, using the linked reproduction project if needed. Observe the keyboard after entering AA1 and compare it with an unmasked Entry. Done means applying the XX-XX-XX mask no longer causes the keyboard to switch type while entering numbers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100