Skip to content

Commit

Permalink
fix sebastian's point about prevent default
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 30, 2020
1 parent 3bbf352 commit 88be7f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ export default function useAutocomplete(props) {
const option = filteredOptions[highlightedIndexRef.current];
const disabled = getOptionDisabled ? getOptionDisabled(option) : false;

// We don't want to validate the form.
// Avoid early form validation, let the end-users continue filling the form.
event.preventDefault();

if (disabled) {
Expand Down

0 comments on commit 88be7f9

Please sign in to comment.