F #5422: Minor fix in autocomplete component (#1597)

(cherry picked from commit e510b2eee5)
This commit is contained in:
Sergio Betanzos authored and Tino Vazquez committed 2021-11-22 10:54:38 +01:00
1 parent d1ab3f4705
commit a091210bef
1 file changed
+1 -1
@@ -91,7 +91,7 @@ const AutocompleteController = memo(
{...(Array.isArray(separators) && {
autoSelect: true,
onInputChange: (event, newInputValue) => {
if (separators.includes(newInputValue.at(-1))) {
if (separators.includes([...newInputValue].at(-1))) {
event.target.blur()
event.target.focus()
}