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

Template refs can only be addressed correctly during initial loading #14465

Closed
naschidaniel opened this issue Jul 30, 2022 · 1 comment
Closed

Comments

@naschidaniel
Copy link

Environment


  • Operating System: Linux
  • Node Version: v16.14.0
  • Nuxt Version: 3.0.0-rc.6
  • Package Manager: npm@8.3.1
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Behavior NOT OK - Nuxt Project: https://stackblitz.com/edit/nuxt-starter-qjn3ru?file=pages%2Ftest.vue

Behavior OK Vue Project: https://stackblitz.com/edit/node-25r64j?file=src%2Fviews%2FTestView.vue

Describe the bug

When changing from the route index to the route test, the input field <input ref="input" /> is not captured correctly. However, if the web page is reloaded, then the values of the field <input ref="input" /> can be accessed.

I have also tested whether this is a Vue error. But I could not observe the error there.

nuxt-app-ref

The two examples were created on the basis of the VUE accessing-the-refs documentation.

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

Let's track in #13471. It is an upstream bug in Vue core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants