Skip to content

Commit

Permalink
Bug fixing some things
Browse files Browse the repository at this point in the history
  • Loading branch information
rol4nd909 committed Oct 3, 2024
1 parent 1208716 commit 2e6fc7b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"stylelint-config-recommended-scss": "^14.1.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-plugin-logical-css": "^1.2.1"
}
},
"packageManager": "[email protected]"
}
10 changes: 5 additions & 5 deletions src/components/Carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ export class Carousel {
.filter(x => x.removedNodes.length > 0)
.forEach(mutation => {
[...mutation.removedNodes]
.filter(x => x.querySelector('.carousel') === this.elements.root)
.forEach(removedEl => {
this.#unlisten()
})
.filter(x => Element.prototype.isPrototypeOf(x) && x.querySelector('.carousel') === this.elements.root)
.forEach(removedEl => {
this.#unlisten()
})
})
})
})
}

#initializeState() {
Expand Down
10 changes: 6 additions & 4 deletions src/components/NumberedTabs/NumberedTabs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ const { items } = Astro.props
</style>

<script>
import { TabbedContent } from "@/scripts/TabbedContent";
import { TabbedContent } from '@/scripts/TabbedContent'

const tabbed = document.querySelectorAll<HTMLElement>('.numbered-tabs')
tabbed.forEach(TabbedContent)
</script>
document.addEventListener('astro:page-load', () => {
const tabbed = document.querySelectorAll<HTMLElement>('.numbered-tabs')
tabbed.forEach(TabbedContent)
})
</script>

0 comments on commit 2e6fc7b

Please sign in to comment.