ui-material-components icon indicating copy to clipboard operation
ui-material-components copied to clipboard

Secure property for type password freezing the screen and disabling the other text fields. IOS

Open ruminder90 opened this issue 3 years ago • 8 comments

Steps to reproduce

Add following tags to the page. <MDTextField #username ios:variant="underline" class="large-input-field" autocapitalizationType="none" autocorrect="false" [automationText]="Username" [returnKeyType]="next" [hint]="Username"> </MDTextField> <MDTextField #password ios:variant="underline" class="large-input-field" autocapitalizationType="none" secure="true" autocorrect="false" [automationText]="Password" [returnKeyType]="done" [hint]="Password"> </MDTextField>

Enter username and then password. After entering password try to edit username, it will freezes the screen, unable to enter data, resulting in crash of application. You can add signIn() function linked to the returnPress of Password field, and add function to it. It will also result in same behaviour resulting in crash of app on IOS. Occurring only in IOS

Which platform(s) does your issue occur on?

  • iOS
  • emulator or device.

Please, provide the following version numbers that your issue occurs with:

  • CLI: 6.8.0 (run tns --version to fetch it)
  • IOS version: 2.7.0

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

ruminder90 avatar Mar 18 '21 18:03 ruminder90

@ruminder90 i need a simple repro example to fix it. And not in Angular it adds too much making it really hard to debug

farfromrefug avatar Mar 18 '21 20:03 farfromrefug

It working fine with the sample application I created, however in my other project I am not able to edit the username field after entering the password. There were not much logs, only logs related to "unable to simultaneously constraints". However on making secure=false, everything works fine. Can any one tell me what could be possible cause creating the issue.

ruminder90 avatar Mar 22 '21 14:03 ruminder90

Hi, could this be related to the following?

https://github.com/material-components/material-components-ios/issues/10130 [TextFields] MDCTextField crashes in iOS 14 when "Done" keyboard button is pressed with secure text entry on

chuckmitchell avatar Mar 31 '21 19:03 chuckmitchell

@chuckmitchell i see might be it. I started the migration to the new comp but it was still missing a lot of "features". The code is here. If you want to have a go at it ... I dont have much time those days

farfromrefug avatar Mar 31 '21 19:03 farfromrefug

Facing a similar issue with the secure text field - have anyone fixed it or have any workaround?

akanksha0514 avatar May 06 '21 15:05 akanksha0514

Same here... I hate iOS... it's always before my public release that this kind of fuc*** skd14 is making me crazy.... I cannot publish an app with clear password.... please...

lostation avatar Jun 01 '21 08:06 lostation

I've temporary replace all my "secure" MD input with simple NS Textfield....the secure is ok for those one.

lostation avatar Jun 01 '21 18:06 lostation

@lostation @akanksha0514 @chuckmitchell could you try 5.3.4-alpha.0+3df91bf4 ? It has the new implementation of the textfield. Not sure it is perfect yet though

farfromrefug avatar Jun 01 '21 19:06 farfromrefug