Skip to content

Commit 4e84d82

Browse files
committed
typo
1 parent 33756f2 commit 4e84d82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pg/tabs/tabs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)