!disabled && inputRef.current?.focus()}
+ >
+ {value && (
+ <>
+
+
+
+ {value.symbol}
+
+
+
+ >
+ )}
+
{
+ setQuery(e.target.value);
+ setIsOpen(true);
+ }}
+ onFocus={() => setIsOpen(true)}
+ onKeyDown={handleKeyDown}
+ placeholder={value ? `Change token…` : placeholder}
+ disabled={disabled}
+ autoComplete="off"
+ role="combobox"
+ aria-expanded={isOpen}
+ aria-autocomplete="list"
+ aria-controls={listId}
+ aria-activedescendant={
+ activeIndex >= 0
+ ? `bw-token-item-${activeIndex}`
+ : undefined
+ }
+ />
+ {query && (
+
+ )}
+