The frist argument of useScroll can support dom selector #4508
Unanswered
whateveryoudo
asked this question in
Q&A
Replies: 1 comment
-
Why do you need |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Clear and concise description of the problem
I find it not work when i use
documentByxx
as the first argument, it works in onMounted, but I can't use the result in my template,I find use watch Api withflush: post
, maybe dom element not a reactive element, get null , In addition, a lot of components ref.value not the element, maybe $el, I think provide a function to get the elem or compatible other circumstancesSuggested solution
start listener in nexttick or use onmounted inside
Alternative
No response
Additional context
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions