File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export default class PgTabs extends HTMLElement {
4141 this . #selectedTab = index ;
4242 } ) ;
4343 $tab . addEventListener ( 'arrowleft' , ( e : any ) => {
44- const $tabs = this . $slot . assignedElements ( ) as PgPartialTab [ ] ;
44+ const $tabs = Array . from ( this . $tabset . children ) as PgPartialTab [ ] ;
4545 const { index } = e . detail ;
4646 if ( this . tabs . length > 1 ) {
4747 if ( index === 0 ) {
@@ -53,7 +53,7 @@ export default class PgTabs extends HTMLElement {
5353 }
5454 } ) ;
5555 $tab . addEventListener ( 'arrowright' , ( e : any ) => {
56- const $tabs = this . $slot . assignedElements ( ) as PgPartialTab [ ] ;
56+ const $tabs = Array . from ( this . $tabset . children ) as PgPartialTab [ ] ;
5757 const { index } = e . detail ;
5858 if ( this . tabs . length > 1 ) {
5959 if ( index === this . tabs . length - 1 ) {
You can’t perform that action at this time.
0 commit comments