From 355103912a7841b03b70fade6d0a4613ff8a60a9 Mon Sep 17 00:00:00 2001 From: Jason Felege Date: Sat, 16 Sep 2023 10:31:59 -0500 Subject: [PATCH 1/2] fix: add optional prop "name" to RadioGroupOwnProps --- index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.d.ts b/index.d.ts index bd01f37d4..7a0d93131 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1758,6 +1758,10 @@ export interface RadioGroupOwnProps extends PaneOwnProps { * The options for the radios of the Radio Group. */ options?: RadioGroupOption[] + /** + * The name attribute for HTML radio button. Default to auto-generated string with 'RadioGroup' prefix. + */ + name?: string /** * The selected item value when controlled. */ From 4cc87804cf4b068691436b3d87aa29041939a115 Mon Sep 17 00:00:00 2001 From: Jason Felege Date: Sat, 16 Sep 2023 11:22:22 -0500 Subject: [PATCH 2/2] refactor: re-order the name prop of RadioGroupOwnProps --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 7a0d93131..7552cb3b7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1758,10 +1758,6 @@ export interface RadioGroupOwnProps extends PaneOwnProps { * The options for the radios of the Radio Group. */ options?: RadioGroupOption[] - /** - * The name attribute for HTML radio button. Default to auto-generated string with 'RadioGroup' prefix. - */ - name?: string /** * The selected item value when controlled. */ @@ -1778,6 +1774,10 @@ export interface RadioGroupOwnProps extends PaneOwnProps { * When true, the radio get the required attribute. */ isRequired?: boolean + /** + * The name attribute for HTML radio button. Default to auto-generated string with 'RadioGroup' prefix. + */ + name?: string /** * Function called when state changes. */