From c238ede62218b94b289b99b79aff9c64bf5034cc Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 4 Jan 2023 12:28:30 -0500 Subject: [PATCH] chore(jsdoc): move comment on RadioGroup (#26558) * chore(jsdoc): change JSDoc on RadioGroup to double slash (//) comment This converts a multiline comment (like `/**...*/`) above the `RadioGroup` component class to be a series of `//` comments instead. This is done to prevent the comment from being accidentally recognized as a JSDoc comment for the class when a Stencil version incorporating this change is installed: https://github.com/ionic-team/stencil/commit/2e4b1fcdc0b3fd41928d27cf9ee525a15b02d617 * move down to the relevant line, keep as multi-line comment --- core/src/components/radio-group/radio-group.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/components/radio-group/radio-group.tsx b/core/src/components/radio-group/radio-group.tsx index 8dbdcaba87..54ee0c2240 100644 --- a/core/src/components/radio-group/radio-group.tsx +++ b/core/src/components/radio-group/radio-group.tsx @@ -4,12 +4,6 @@ import { Component, Element, Event, Host, Listen, Prop, Watch, h } from '@stenci import { getIonMode } from '../../global/ionic-global'; import type { RadioGroupChangeEventDetail } from '../../interface'; -/** - * The Radio Group component mandates that only one radio button - * within the group can be selected at any given time. Since `ion-radio` - * is a shadow DOM component, it cannot natively perform this behavior - * using the `name` attribute. - */ @Component({ tag: 'ion-radio-group', }) @@ -91,6 +85,12 @@ export class RadioGroup implements ComponentInterface { private onClick = (ev: Event) => { ev.preventDefault(); + /** + * The Radio Group component mandates that only one radio button + * within the group can be selected at any given time. Since `ion-radio` + * is a shadow DOM component, it cannot natively perform this behavior + * using the `name` attribute. + */ const selectedRadio = ev.target && (ev.target as HTMLElement).closest('ion-radio'); if (selectedRadio) { const currentValue = this.value;