You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have an option to auto capitalize inputs as they get typed in. The autocapitalize attribute has been added, but this is only used for virtual keyboards and has limited browser support. A better way would be to handle this inside the component, observing inputs and capitalizing them as they come in.
The text was updated successfully, but these errors were encountered:
@hkaiser25 Unfortunately I don't have a time to focus on the library. I am planning to complete it but not now. As a temporary solution you can do the following:
In HTML: <code-input ... [code]="code" (codeChanged)="onCodeChanged($event)" (codeCompleted)="onCodeCompleted($event)"> </code-input>
In the code:
...
public code = '';
...
public async onCodeChanged(code: string): Promise<void> {
this.code = code;
await new Promise(resolve => setTimeout(resolve, 50));
this.code = code.toLocaleUpperCase();
}
public onCodeCompleted(code: string): void {
const value = code.toLocaleUpperCase();
...
}
It would be nice to have an option to auto capitalize inputs as they get typed in. The
autocapitalize
attribute has been added, but this is only used for virtual keyboards and has limited browser support. A better way would be to handle this inside the component, observing inputs and capitalizing them as they come in.The text was updated successfully, but these errors were encountered: