mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(radio-group): get radios before caching value to avoid infinite loop (#19448)
fixes #19277
This commit is contained in:
@@ -83,8 +83,14 @@ export class RadioGroup implements ComponentInterface {
|
||||
}
|
||||
|
||||
private async updateRadios() {
|
||||
const { value } = this;
|
||||
/**
|
||||
* Make sure we get all radios first
|
||||
* so values are up to date prior
|
||||
* to caching the radio group value
|
||||
*/
|
||||
const radios = await this.getRadios();
|
||||
const { value } = this;
|
||||
|
||||
let hasChecked = false;
|
||||
|
||||
// Walk the DOM in reverse order, since the last selected one wins!
|
||||
|
||||
Reference in New Issue
Block a user