Unplanned
Last Updated: 06 Nov 2024 08:12 by Mauro
Mauro
Created on: 06 Nov 2024 08:12
Category: FloatingLabel
Type: Feature Request
1
API to Manually Reset FloatingLabel and Label Form Validity

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;
}

0 comments