+
0 ? listId : undefined}
+ aria-activedescendant={activeIdx >= 0 ? `${name}-opt-${activeIdx}` : undefined}
+ autoComplete="off"
+ className="text-short-input"
+ onChange={(e) => handleInput(e.target.value)}
+ onKeyDown={handleKeyDown}
+ onFocus={() => { if (suggestions.length > 0) setOpen(true) }}
+ onBlur={() => setTimeout(() => setOpen(false), 150)}
+ />
+ {open && suggestions.length > 0 && (
+
+ {suggestions.map((barrio, i) => (
+ - select(barrio)}
+ >
+ {barrio}
+
+ ))}
+
+ )}
+