Skip to content

Commit

Permalink
Fix Sentry error when focus on MultiAutocompleteSelect (#4994)
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch authored Jun 26, 2024
1 parent 4f86d13 commit 60b1654
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ const MultiAutocompleteSelectFieldComponent: React.FC<
if (fetchOnFocus) {
fetchChoices(inputValue);
}
input.current.select();

if (input.current) {
input.current.select();
}
};

const handleToggleMenu = () => {
Expand Down

0 comments on commit 60b1654

Please sign in to comment.