refactor: post-form-attaches to composition api #57

Closed
norm wants to merge 18 commits from (deleted):refactor/post-form-attaches into main
Showing only changes of commit 27df713afb - Show all commits

View file

@ -78,7 +78,7 @@ watch(iconOnly, () => {
});
onMounted(() => {
if (sidebar && sidebar.parentElement) {
if (sidebar?.parentElement) {
const sticky = new StickySidebar(sidebar.parentElement, 16);
window.addEventListener('scroll', () => {
sticky.calc(window.scrollY);