maui
maui copied to clipboard
[Entry] [Android] Cursor makes undesired jumps with Masked Behavior
Description
Using the .NET MAUI Entry control works fine in both android and iOS, but applying behaviours such as MaskedBehvior from .NET MAUI Community Toolkit (or others) ends up un randomic cursor movements on Android, iOS doesn't present this strange behaviour.
Steps to Reproduce
- Create a MAUI App.
- Download package CommunityToolkit.Maui and follow instructions to make it work.
- On Main page put a entry with behaviour:
<Entry>
<Entry.Behaviors>
<mtc:MaskedBehavior Mask="XXXX XXXX XXXX XXXX" />
</Entry.Behaviors>
</Entry>
- Start writing and see randomic cursor dance.
Link to public reproduction project repository
https://github.com/Asfiroth/MauiEntryBehaviourIssue
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12+
Did you find any workaround?
No response
Relevant log output
No response
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- MaskedBehavior from the Toolkit Behaviors is not working properly (#22041), similarity score: 0.83
Closed similar issues:
- [Entry] [Android] Cursor makes undesired jumps with masked behaviour (#13571), similarity score: 0.96
- [Bug] (Android) Entry control returns cursor when typing to the beginning after each character typed in (#2798), similarity score: 0.79
- [Android] - Cursor Resets to the Beginning When Typing Letters with TextTransform (#17122), similarity score: 0.78
- Cursor jumps to start when writing on Entry (Android, TextTransform) (#12411), similarity score: 0.77
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I created this issue because the existing one was not fixed.
Verified this issue with Visual Studio 17.10 Preview 7.0(8.0.408.0.20&8.0.7). Can repro on Android platform with sample project.
Still having this issue on latest MAUI v8.0.80 and community toolkit v9.0.3
Still having this issue on latest MAUI v8.0.80 and community toolkit v9.0.3
@LeoJHarris I have just updated to the same version and it fixed it for me (my mask was XX:XX)
Still having this issue on latest MAUI v8.0.80 and community toolkit v9.0.3
@LeoJHarris I have just updated to the same version and it fixed it for me (my mask was XX:XX)
@eqmarcin Odd I am still having the same issue.
Verified with .NET MAUI 9.0.60, Community Toolkit 11.0.2 on Android API 34 — issue is not reproducible.
https://github.com/user-attachments/assets/0e025d82-9fba-4275-8775-4912daebe31f
Hi @@Hackmodford. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.
You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.