From b21d159ea2872b008d1f87df5eafb7ceef439f17 Mon Sep 17 00:00:00 2001 From: Brendan Drew Date: Tue, 30 Jan 2024 14:04:46 -0700 Subject: [PATCH] fix: align useCombobox getToggleButtonProps with useSelect useCombobox's getToggleButtonProps was only compatible with HTMLButtonElement useSelect is compatible with any HTMLElement --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 9836617ee..acd1221c8 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -150,7 +150,7 @@ export interface GetLabelPropsReturnValue { } export interface GetToggleButtonPropsOptions - extends React.HTMLProps { + extends React.HTMLProps { disabled?: boolean onPress?: (event: React.BaseSyntheticEvent) => void }