Open Nitekurs opened 3 years ago
Hi Sir, Please update how to solve this because I am now frustrated for this issue. Page are jump on input focus in iOS.
@Nitekurs Hi, this library utilizes native focus()
function for focusing - https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus, therefore I am not sure that this is the lib issue.
Please provide the following:
Hi AlexMiniApps ,
Configuration is done as per mentioned in this site(https://www.npmjs.com/package/angular-code-input) Configuration of the library : - "angular-code-input": "^1.5.0"(package.json)
I am using this source code `<code-input class="code-input" [isCodeHidden]="false" [codeLength]="6" [isPrevFocusableAfterClearing]="false" [isFocusingOnLastByClickIfFilled]="false"
`
@Nitekurs Thank you Please also send the following:
<br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <code-input [isCodeHidden]="true" [codeLength]="6" (codeChanged)="onCodeChanged($event)" (codeCompleted)="onCodeCompleted($event)"> </code-input>
app.module.ts
`import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { CodeInputModule } from 'angular-code-input'; import { AppComponent } from './app.component';
@NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, CodeInputModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } `
@Nitekurs Just checked and found that this issue is related only to the iOS 12 and below versions. I have tried to replicate the issue on the iOS 13, and iOS 14, but there are no such issue. Taking into account that the iOS version is 12, I am not sure that will fix this issue, sorry. Please let me know if you will faced with this issue on another version of iOS.
@AlexMiniApps Is there any other alternative solutions for this.
@Nitekurs Yep. you can create fork of this or create PR and I will merge it. The lib is working on iOS 12 and below, but in iOS 12 with tiny UI issues which have described by you. Why do you need the full support of the iOS12? How many user you will have with this version of iOS?
@AlexMiniApps , I have create fork of this https://stackblitz.com/edit/angular-ivy-sh5bad?file=src%2Fapp%2Fapp.component.html. Actually this is banking project so I need to support all devices.
Also I have a created simple focus and blur directives in this also pages are jumping in iOS. https://stackblitz.com/edit/angular-ivy-mbwhpm?file=src/app/directive/autofocus.directive.ts
@Nitekurs Looks nice. I will think about how can I help you.
In iOS pages are jump if MPIN change from one input to other.