Skip to content

Commit

Permalink
Update listbox d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
gucal committed Mar 18, 2024
1 parent 4fc6b40 commit eb3dd82
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions components/lib/listbox/listbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,21 @@ export interface ListBoxProps extends Omit<React.DetailedHTMLProps<React.InputHT
* @type {VirtualScrollerProps}
*/
virtualScrollerOptions?: VirtualScrollerProps | undefined;
/**
* Whether to focus on the first visible or selected element.
* @defaultValue false
*/
autoOptionFocus?: boolean | undefined;

Check failure on line 406 in components/lib/listbox/listbox.d.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Duplicate identifier 'autoOptionFocus'.

Check failure on line 406 in components/lib/listbox/listbox.d.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Subsequent property declarations must have the same type. Property 'autoOptionFocus' must be of type 'false | undefined', but here has type 'boolean | undefined'.

Check failure on line 406 in components/lib/listbox/listbox.d.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Duplicate identifier 'autoOptionFocus'.

Check failure on line 406 in components/lib/listbox/listbox.d.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Subsequent property declarations must have the same type. Property 'autoOptionFocus' must be of type 'false | undefined', but here has type 'boolean | undefined'.
/**
* When enabled, the focused option is selected.
* @defaultValue false
*/
selectOnFocus?: boolean | undefined;

Check failure on line 411 in components/lib/listbox/listbox.d.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Duplicate identifier 'selectOnFocus'.

Check failure on line 411 in components/lib/listbox/listbox.d.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Subsequent property declarations must have the same type. Property 'selectOnFocus' must be of type 'false | undefined', but here has type 'boolean | undefined'.

Check failure on line 411 in components/lib/listbox/listbox.d.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Duplicate identifier 'selectOnFocus'.

Check failure on line 411 in components/lib/listbox/listbox.d.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Subsequent property declarations must have the same type. Property 'selectOnFocus' must be of type 'false | undefined', but here has type 'boolean | undefined'.
/**
* When enabled, the focus is placed on the hovered option.
* @defaultValue true
*/
focusOnHover?: boolean | undefined;
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {ListboxPassThroughOptions}
Expand Down

0 comments on commit eb3dd82

Please sign in to comment.