Skip to content

Commit

Permalink
Fix AutocompleteArrayInput triggers an infinite loop when disabled
Browse files Browse the repository at this point in the history
Closes #9714
  • Loading branch information
fzaninotto committed Mar 12, 2024
1 parent 717d292 commit 95887dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const AutocompleteArrayInput = <
<AutocompleteInput<OptionType, true, DisableClearable, SupportCreate>
{...props}
multiple
defaultValue={defaultValue ?? []}
defaultValue={defaultValue ?? (props.disabled ? undefined : [])}
/>
);

Expand Down

0 comments on commit 95887dc

Please sign in to comment.