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