maui icon indicating copy to clipboard operation
maui copied to clipboard

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

Open Hackmodford opened this issue 1 year ago • 3 comments

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>
  1. 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

Hackmodford avatar May 17 '24 17:05 Hackmodford

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.

github-actions[bot] avatar May 17 '24 17:05 github-actions[bot]

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

Hackmodford avatar May 17 '24 17:05 Hackmodford

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.

Zhanglirong-Winnie avatar May 20 '24 00:05 Zhanglirong-Winnie

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

LeoJHarris avatar Aug 19 '24 22:08 LeoJHarris

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 avatar Aug 21 '24 11:08 eqmarcin

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.

LeoJHarris avatar Aug 21 '24 22:08 LeoJHarris

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

praveenkumarkarunanithi avatar Apr 16 '25 13:04 praveenkumarkarunanithi

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.