We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Windows_NT
v14.18.2
3.0.0-27487080.ec32cf9
yarn@1.22.17
vite
meta
css
build
ssr
-
<template> <div ref="test">Test</div> </template>
const test = ref(null); onMounted(() => { console.log(test.value.offsetWidth); });
When changing the route, console.log outputs offsetWidth = 0, when the page is reloaded normally, offsetWidth works.
No response
The text was updated successfully, but these errors were encountered:
Let's track this in #13471.
Sorry, something went wrong.
No branches or pull requests
Environment
Windows_NT
v14.18.2
3.0.0-27487080.ec32cf9
yarn@1.22.17
vite
meta
,css
,build
,ssr
,vite
-
-
Reproduction
<template> <div ref="test">Test</div> </template>
const test = ref(null); onMounted(() => { console.log(test.value.offsetWidth); });
Describe the bug
When changing the route, console.log outputs offsetWidth = 0, when the page is reloaded normally, offsetWidth works.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: