1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

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

(cherry picked from commit e510b2eee568117e73bad61a1c33d2322515a435)
This commit is contained in:
Sergio Betanzos 2021-11-22 10:54:23 +01:00 committed by Tino Vazquez
parent d1ab3f4705
commit a091210bef
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -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()
}