From d527414e109c9cc6ae43171911f89a43b2f0691f Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 1 Jun 2021 10:44:45 -0400 Subject: [PATCH] chore(radio-group): clean up code to reuse helper function (#23396) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel Simão --- core/src/components/radio-group/radio-group.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/components/radio-group/radio-group.tsx b/core/src/components/radio-group/radio-group.tsx index 8f9ed6a693..d5c67b00cd 100644 --- a/core/src/components/radio-group/radio-group.tsx +++ b/core/src/components/radio-group/radio-group.tsx @@ -107,7 +107,7 @@ export class RadioGroup implements ComponentInterface { // Get all radios inside of the radio group and then // filter out disabled radios since we need to skip those - const radios = Array.from(this.el.querySelectorAll('ion-radio')).filter(radio => !radio.disabled); + const radios = this.getRadios().filter(radio => !radio.disabled); // Only move the radio if the current focus is in the radio group if (ev.target && radios.includes(ev.target)) {