Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
fix(core): allow calling getDropdownProps without argument
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Aug 19, 2020
1 parent 2264f2b commit c44e494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/autocomplete-core/src/propGetters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function getPropGetters<TItem, TEvent, TMouseEvent, TKeyboardEvent>({
}

const isTouchDevice = 'ontouchstart' in props.environment;
const { inputElement, maxLength = 512, ...rest } = providedProps;
const { inputElement, maxLength = 512, ...rest } = providedProps || {};

return {
'aria-autocomplete': props.showCompletion ? 'both' : 'list',
Expand Down

0 comments on commit c44e494

Please sign in to comment.