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.15k stars 1.74k forks source link

Cursor jumps on Entry with IsPassword #5401

Closed christophbrunner closed 2 years ago

christophbrunner commented 2 years ago

Description

When entering a password, the cursor jumps to the beginning of the field each time a key is entered. Maui-IsPassword

Steps to Reproduce

  1. Create new project
  2. Add a Entry with IsPassword-Attribute <Entry IsPassword="True" />
  3. Entering a password with the keyboard

Version with bug

Preview 14 (current)

Last version that worked well

Preview 13

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows 21H2 (OSBuil 22000.556)

Did you find any workaround?

No

Relevant log output

No response

Amir-Care commented 2 years ago

Verified not repro with Version 17.2.0 Preview 2.0 [32208.484.main]

5401_windows

egvijayanand commented 2 years ago

Same issue. The cursor jumps to the start after the entry of each character.

egvijayanand commented 2 years ago

Simulation video attached.

https://user-images.githubusercontent.com/81947404/158982638-30e898f8-344d-43ac-a0dd-a80f62ad65a7.mp4

egvijayanand commented 2 years ago

5414 has nothing to do with this issue. Simulated in a single app instance, apart from that they've no connection.

emceelovin commented 2 years ago

I have this exact issue as well, but was searching before I posted a dup. Same behavior on preview 14 as well.

rborosak commented 2 years ago

Can confirm the problem on Windows (Preview 14). It works on android

osnipezzini commented 2 years ago

Confirmed issue on Preview 14 here too

tess123456 commented 2 years ago

I am still having a cursor issue when using a simple Entry control and setting isPassword = True. No TextTransform or converters. Issue is when running in Windows. I am using the latest 17.2.0 Preview 6.0.

Issue is the same as others have previously highlighted - https://github.com/dotnet/maui/issues/5401#issuecomment-1072257277

The above verified fix seems to have a great deal of code around text transformation, however the problem I am having (and others have commented on) seems to be a problem with isPassword and the setting of the cursor. I do not wish to add a load of code behind for isPassword to work correctly. Any ideas if this is on the cards to be fixed any time soon? Thanks

SotoiGhost commented 2 years ago

@tess123456 the odd cursor behavior when using IsPassword was also fixed with the merge of the above PR. Here's a testcase using an Entry control with no TextTransform or Converter. Hope this helps! 😊 Don't hesitate to ask if you have any doubt!

https://user-images.githubusercontent.com/5924210/167453451-7f9fc24e-8a03-48c7-971d-3d49e31f2002.mp4

tess123456 commented 2 years ago

@SotoiGhost This is not fixed for me when running under Windows (see comment from @christophbrunner ref #6977 ).

I think this issue needs to be reopened and resolved in windows.

christophbrunner commented 2 years ago

Jep, it is not fixed in RC3. Please reopen this Bug.

Redth commented 2 years ago

The PR fixing this was not merged in time for RC3, the fix will be in GA