-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function only called once at beginning of created page #10
Comments
What is the size of your component? |
I have the same issue. Function is only called when page is created, |
Same issue |
No news on this? |
Same issue |
Got a similar problem. the function will be called once when the site loads and after that never again, also the classes are not updated after scrolling the elements into the viewport.
Update: just found it it works on a normal page, but if I wrap my list into a div with a css (see below) to get a scrollable div instead of a long page it won't update anything. .scroller {
height: 80vh;
overflow: auto;
} |
In my case, i wanted to detect if a bulma-dropdown was out of sight and needed to decide whether to use a dropup instead. So basically I use this little piece of code during the dropdown toggle
|
i have a component like this
and my script function only do
console.log()
.Why is it only trigger once instead of every time i scroll down the screen ?
Not like how it works in demo, every time i scroll down, the component updating its view property
The text was updated successfully, but these errors were encountered: