Im trying to clear a dropdown in angular which is using reactive forms.
Basically when the user changes the Phone 2 control which is a textbox and that value isnt satisfactory(less than 9 numeric chars) I am wanting to set the dropdown Phone2 Type to a blank value. And disable it.
As you can see above i can disable Phone2 Type but not clear it to the first option in the list which is blank.
The dropdown is loaded with API data. The html markup looks like this.
As you can see in the typescript method above on keypress when the characters are numeric and the length is < 9 I attempt to setValue to blank and disable the control. I cannot set the index value to the first option in the list which is blank. The setValue("") doesnt do it. Ive tried reset() no luck there either. The reactive form control code in typescript is below: