mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(tree-view): fix type error when keyboard navigating an expanded node (#1350)
Fixes #1349
This commit is contained in:
parent
624abe88fe
commit
eb381190c9
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
if (parent && e.key === 'ArrowRight') {
|
if (parent && e.key === 'ArrowRight') {
|
||||||
if (expanded) {
|
if (expanded) {
|
||||||
ref.lastChild.firstChild.focus();
|
ref.lastChild.firstElementChild?.focus();
|
||||||
} else {
|
} else {
|
||||||
expanded = true;
|
expanded = true;
|
||||||
expandNode(node, true);
|
expandNode(node, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue