Skip to content

Commit

Permalink
Fix #6145: AutoComplete change event typedef (#6146)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Mar 13, 2024
1 parent 2d66a30 commit 0fef6a2
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 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
1 change: 1 addition & 0 deletions components/lib/radiobutton/radiobutton.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*
*/
import * as React from 'react';
import { CheckboxPassThroughType } from '../checkbox/checkbox';
import { ComponentHooks } from '../componentbase/componentbase';
import { PassThroughOptions } from '../passthrough';
import { TooltipPassThroughOptions } from '../tooltip/tooltip';
Expand Down
3 changes: 2 additions & 1 deletion components/lib/togglebutton/togglebutton.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*
*/
import * as React from 'react';
import { CheckboxPassThroughType } from '../checkbox/checkbox';
import { ComponentHooks } from '../componentbase/componentbase';
import { PassThroughOptions } from '../passthrough';
import { TooltipPassThroughOptions } from '../tooltip/tooltip';
Expand Down Expand Up @@ -53,7 +54,7 @@ export interface ToggleButtonPassThroughOptions {
/**
* Uses to pass attributes to the input's DOM element.
*/
input?: RadioButtonPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
input?: ToggleButtonPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Used to pass attributes to the box's DOM element.
*/
Expand Down
1 change: 1 addition & 0 deletions components/lib/tristatecheckbox/tristatecheckbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*
*/
import * as React from 'react';
import { CheckboxPassThroughType } from '../checkbox/checkbox';
import { ComponentHooks } from '../componentbase/componentbase';
import { PassThroughOptions } from '../passthrough';
import { TooltipPassThroughOptions } from '../tooltip/tooltip';
Expand Down

0 comments on commit 0fef6a2

Please sign in to comment.