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

Transition doesn't work well with defineModel #9838

Closed
Saeid-Za opened this issue Dec 15, 2023 · 2 comments · Fixed by #9841
Closed

Transition doesn't work well with defineModel #9838

Saeid-Za opened this issue Dec 15, 2023 · 2 comments · Fixed by #9841
Labels

Comments

@Saeid-Za
Copy link
Contributor

Vue version

3.4.0-beta.2

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-1yf9xq?file=src%2Fcomponents%2FHelloWorld.vue

Steps to reproduce

1- Click on Toggle Model Value
2- Check if corresponding value is changing (it does not)

3- Click on Toggle Local Value
4- Check if corresponding value is changing (it does)

5- Click on Toggle Explicit Value
6- Check if corresponding value is changing (it does)

What is expected?

When I click on Toggle Model Value, It is expected that the value is updated inside Transition component.

What is actually happening?

Value inside Transition of modelValue (which is defined with defineModel) is not reactive.

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.10.5 - /usr/local/bin/pnpm
  npmPackages:
    vue: 3.4.0-beta.2 => 3.4.0-beta.2

Any additional comments?

This issue is not happening on stable channel (3.3.x).

@edison1105
Copy link
Member

edison1105 commented Dec 15, 2023

related commit f74785b
simplify demo switch to v3.4.0-beta2

@yyx990803
Copy link
Member

fixed by #9841

@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants