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

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

This commit is contained in:
Sergio Betanzos 2021-11-22 10:54:23 +01:00 committed by GitHub
parent 5efa6b9b6d
commit e510b2eee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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