From 8c8a553dc00111075de02c782a181b65633b4d6e Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 13 Mar 2024 14:49:17 -0400 Subject: [PATCH] Fix #6145: AutoComplete change event typedef --- components/lib/autocomplete/autocomplete.d.ts | 2 +- components/lib/checkbox/Checkbox.js | 2 +- components/lib/checkbox/CheckboxBase.js | 1 - components/lib/checkbox/checkbox.d.ts | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/lib/autocomplete/autocomplete.d.ts b/components/lib/autocomplete/autocomplete.d.ts index da565f89f4..2341456751 100755 --- a/components/lib/autocomplete/autocomplete.d.ts +++ b/components/lib/autocomplete/autocomplete.d.ts @@ -227,7 +227,7 @@ export interface AutoCompleteContext { * Defines valid properties in AutoComplete component. In addition to these, all properties of HTMLSpanElement can be used in this component. * @group Properties */ -export interface AutoCompleteProps extends Omit, HTMLSpanElement>, 'onChange' | 'onSelect' | 'ref'> { +export interface AutoCompleteProps extends Omit, HTMLSpanElement>, 'onChange' | 'onSelect' | 'ref'> { /** * Unique identifier of the element. */ diff --git a/components/lib/checkbox/Checkbox.js b/components/lib/checkbox/Checkbox.js index 63a1d56e8d..bbc98352d2 100644 --- a/components/lib/checkbox/Checkbox.js +++ b/components/lib/checkbox/Checkbox.js @@ -21,7 +21,7 @@ export const Checkbox = React.memo( }); useHandleStyle(CheckboxBase.css.styles, isUnstyled, { name: 'checkbox' }); - + const elementRef = React.useRef(null); const inputRef = React.useRef(props.inputRef); diff --git a/components/lib/checkbox/CheckboxBase.js b/components/lib/checkbox/CheckboxBase.js index 1103da19af..4eb62ff033 100644 --- a/components/lib/checkbox/CheckboxBase.js +++ b/components/lib/checkbox/CheckboxBase.js @@ -14,7 +14,6 @@ const classes = { }) }; - export const CheckboxBase = ComponentBase.extend({ defaultProps: { __TYPE: 'Checkbox', diff --git a/components/lib/checkbox/checkbox.d.ts b/components/lib/checkbox/checkbox.d.ts index db831cb5a4..27466145af 100644 --- a/components/lib/checkbox/checkbox.d.ts +++ b/components/lib/checkbox/checkbox.d.ts @@ -74,7 +74,6 @@ export interface CheckboxContext { disabled: boolean; } - /** * Custom change event. * @see {@link CheckboxProps.onChange}