fix(dropdown): selecting a different dropdown should focus the button

This commit is contained in:
Eric Liu 2020-12-05 10:31:35 -08:00
commit 8da003c799

View file

@ -189,11 +189,6 @@
change(-1);
}
}}"
on:blur="{({ relatedTarget }) => {
if (relatedTarget) {
ref.focus();
}
}}"
disabled="{disabled}"
translateWithId="{translateWithId}"
id="{id}"
@ -213,6 +208,7 @@
on:click="{() => {
selectedId = item.id;
selectedIndex = i;
ref.focus();
}}"
on:mouseenter="{() => {
highlightedIndex = i;