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.
@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();
...
}
Activity
AlexMiniApps commentedon Nov 26, 2021
@andyrue I guess I will additional setting for the component.
hkaiser25 commentedon Apr 12, 2024
Any update on this? I need my input to be automatically capitalized.
AlexMiniApps commentedon Apr 19, 2024
@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: