Open on focus and select first match
[MAILPOET-4587]
This commit is contained in:
@@ -39,6 +39,8 @@ export function FormTokenField({
|
|||||||
label={label}
|
label={label}
|
||||||
value={selected.map((item) => item.name)}
|
value={selected.map((item) => item.name)}
|
||||||
suggestions={uniqueSuggestions.map((item) => item.name)}
|
suggestions={uniqueSuggestions.map((item) => item.name)}
|
||||||
|
__experimentalExpandOnFocus
|
||||||
|
__experimentalAutoSelectFirstMatch
|
||||||
onChange={(raw: string[]) => {
|
onChange={(raw: string[]) => {
|
||||||
const allSelected: FormTokenItem[] = raw.map((item) => {
|
const allSelected: FormTokenItem[] = raw.map((item) => {
|
||||||
const match = uniqueSuggestions.find(
|
const match = uniqueSuggestions.find(
|
||||||
|
Reference in New Issue
Block a user