refactor: post-form-attaches to composition api #57
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue