Skip to content

Commit

Permalink
Fix Sentry error when focus on MultiAutocompleteSelect (#4992)
Browse files Browse the repository at this point in the history
* Fix check if fire select on current input

* Change add

* Resore package-json
  • Loading branch information
poulch authored Jun 26, 2024
1 parent 27a792f commit d9b0b55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rare-taxis-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

An error is no longer raised and visible to the user when focus combobox input
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 d9b0b55

Please sign in to comment.