dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.04k stars 1.73k forks source link

[Entry] [Android] Cursor makes undesired jumps with Masked Behavior #22497

Open Hackmodford opened 4 months ago

Hackmodford commented 4 months ago

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

  1. Create a MAUI App.
  2. Download package CommunityToolkit.Maui and follow instructions to make it work.
  3. On Main page put a entry with behaviour:
    <Entry>
    <Entry.Behaviors>
      <mtc:MaskedBehavior Mask="XXXX XXXX XXXX XXXX" />
    </Entry.Behaviors>
    </Entry>
  4. 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

github-actions[bot] commented 4 months ago

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:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Hackmodford commented 4 months ago

I created this issue because the existing one was not fixed.

Zhanglirong-Winnie commented 4 months ago

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.

LeoJHarris commented 1 month ago

Still having this issue on latest MAUI v8.0.80 and community toolkit v9.0.3

eqmarcin commented 1 month ago

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)

LeoJHarris commented 1 month ago

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.