fix: first element is not detected as active
This commit is contained in:
parent
f353aa1a9b
commit
2fb7e6786e
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ function handleClick(menu: Menu) {
|
|||
const activeMenu = ref(props.menu.at(0)?.anchor || '');
|
||||
|
||||
function onScroll() {
|
||||
let current = '';
|
||||
let current = activeMenu.value;
|
||||
|
||||
if (!currentScrollElement.value) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue