Provided the given ion-input…
<ion-input formControlName="PostalCode" name="PostalCode"></ion-input>
this.form = this.formBuilder.group( { PostalCode: [ { value: '', disabled: true }, [ Validators.required, Validators.minLength( 5 ) ] ] } );
When I call this.form.get( "PostalCode" ).enable()
it doesn’t enable. It “enables” inside the form control itself so the form takes that field into account when determining whether or not the form is valid but the field itself doesn’t become valid. I am noticing the markup shows it’s enabled but the input itself, still has the disabled attribute.
I am doing the same thing with a ion-select
and it’s working as intended.
Is this is a known bug?