Skip to content
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

The frist argument of useScroll can support dom selector #3906

Open
4 tasks done
whateveryoudo opened this issue Apr 2, 2024 · 0 comments
Open
4 tasks done

The frist argument of useScroll can support dom selector #3906

whateveryoudo opened this issue Apr 2, 2024 · 0 comments
Labels
enhancement New feature or request vue: upstream

Comments

@whateveryoudo
Copy link

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 with flush: 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 circumstances

Suggested solution

start listener in nexttick or use onmounted inside

Alternative

No response

Additional context

No response

Validations

@whateveryoudo whateveryoudo added the enhancement New feature or request label Apr 2, 2024
@dosubot dosubot bot added the vue: upstream label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vue: upstream
Projects
None yet
Development

No branches or pull requests

1 participant