File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/skeleton/src/lib/components/TreeView Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 230230 if (! open ) open = true ;
231231 else if ($$slots .children && ! hideChildren ) {
232232 // focus on first child
233- const child = childrenDiv .querySelector (' details>summary' ) as HTMLElement ;
233+ const child = childrenDiv .querySelector < HTMLElement > (' details>summary' );
234234 if (child ) child .focus ();
235235 }
236236 break ;
239239 else {
240240 // focus on parent
241241 const parent = treeItem .parentElement ?.parentElement ;
242- if (parent && parent .tagName === ' DETAILS' ) ( parent .querySelector (' summary' ) as HTMLElement ) .focus ();
242+ if (parent && parent .tagName === ' DETAILS' ) parent .querySelector < HTMLElement > (' summary' )? .focus ();
243243 }
244244 break ;
245245 case ' Home' :
You can’t perform that action at this time.
0 commit comments