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

Commit

Permalink
feat(core): add default form props
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Aug 19, 2020
1 parent cc5d7ed commit 2264f2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/autocomplete-core/src/propGetters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ export function getPropGetters<TItem, TEvent, TMouseEvent, TKeyboardEvent>({
const { inputElement, ...rest } = providedProps;

return {
noValidate: true,
role: 'search',
action: '',
onSubmit: (event) => {
((event as unknown) as Event).preventDefault();

Expand Down

0 comments on commit 2264f2b

Please sign in to comment.