mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +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 (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