mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(dropdown): selecting a different dropdown should focus the button
This commit is contained in:
parent
afb88394c7
commit
8da003c799
1 changed files with 1 additions and 5 deletions
|
@ -189,11 +189,6 @@
|
||||||
change(-1);
|
change(-1);
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
on:blur="{({ relatedTarget }) => {
|
|
||||||
if (relatedTarget) {
|
|
||||||
ref.focus();
|
|
||||||
}
|
|
||||||
}}"
|
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
translateWithId="{translateWithId}"
|
translateWithId="{translateWithId}"
|
||||||
id="{id}"
|
id="{id}"
|
||||||
|
@ -213,6 +208,7 @@
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
selectedId = item.id;
|
selectedId = item.id;
|
||||||
selectedIndex = i;
|
selectedIndex = i;
|
||||||
|
ref.focus();
|
||||||
}}"
|
}}"
|
||||||
on:mouseenter="{() => {
|
on:mouseenter="{() => {
|
||||||
highlightedIndex = i;
|
highlightedIndex = i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue