using computed() to deliver window.scrollY as prop for childElement #10047
Answered
by
Eskamedin
Eskamedin
asked this question in
Help/Questions
-
Using Vue 3 with Composition API with <script setup> I have a parent Component AllSections:
As you can see, it has 4 child-components, all of them are 100vh height to force a scrolling.
Unfotunatly, nothing happens, when i scroll to the Button it says "ScrollTop value is 0 px". No changes, nothing. Where is the mistake? |
Beta Was this translation helpful? Give feedback.
Answered by
Eskamedin
Jan 9, 2024
Replies: 1 comment
-
I solved it already. The problem was that i was using topvalue instead of topvalue.value (no computed needed)
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LinusBorg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved it already. The problem was that i was using topvalue instead of topvalue.value (no computed needed)