Skip to content

Commit

Permalink
Fix #6145: AutoComplete change event typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Mar 13, 2024
1 parent 2d66a30 commit 8c8a553
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/lib/autocomplete/autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, 'onChange' | 'onSelect' | 'ref'> {
export interface AutoCompleteProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, 'onChange' | 'onSelect' | 'ref'> {
/**
* Unique identifier of the element.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/checkbox/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion components/lib/checkbox/CheckboxBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const classes = {
})
};


export const CheckboxBase = ComponentBase.extend({
defaultProps: {
__TYPE: 'Checkbox',
Expand Down
1 change: 0 additions & 1 deletion components/lib/checkbox/checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export interface CheckboxContext {
disabled: boolean;
}


/**
* Custom change event.
* @see {@link CheckboxProps.onChange}
Expand Down

0 comments on commit 8c8a553

Please sign in to comment.