Unplanned
Last Updated: 06 Nov 2024 08:12 by Mauro
Created by: Mauro
Comments: 0
Category: FloatingLabel
Type: Feature Request
1

Add an API method to manually clear the k-invalid class on labels, allowing developers to reset label validity programmatically without triggering additional events.

Workaround the Label invalid hidden API:

https://stackblitz.com/edit/angular-taa4kx-idl51r?file=src%2Fapp%2Fapp.component.ts

@ViewChild(FloatingLabelComponent) private fl: FloatingLabelComponent;

public resetLabelValidity(): void {
 this.fl.invalid = false;
}