In ix 3.1.0 (ix-angular 3.1.1), ix-radio inputs stop changing values or emitting said changes after being selected once, given they are part of an ix-radio-group.
Minimal reproducible example:
- Create an angular component.
- In the HTML, add the following:
<ix-radio-group>
<ix-radio formControlName="userClass" label="Beginner" value="BEGINNER"/>
<ix-radio formControlName="userClass" label="Warrior" value="WARRIOR"/>
<ix-radio formControlName="userClass" label="Rogue" value="ROGUE"/>
</ix-radio-group>
- In the component ts file, add:
userForm!: FormGroup;
ngOnInit() {
this.userForm = this.formBuilder.group({
userClass: ['BEGINNER'],
});
this.userForm.get('userClass')?.valueChanges.subscribe(value=> console.log(value));
}
Expected: the console will log each value whenever it is clicked when it differs from the currently selected value, regardless of how many times each radio item is selected.
Current: The console logs WARRIOR and ROGUE once, then logs nothing else until page reload.