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

Directive inserts a div when component mounted, but the div disappears when the ref updates the data in Vue3, and it's normal in Vue2 #3756

Closed
mofipp opened this issue May 11, 2021 · 3 comments · Fixed by #3757
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working

Comments

@mofipp
Copy link

mofipp commented May 11, 2021

Version

3.0.7

Reproduction link

https://codesandbox.io/s/nice-darwin-bb189?file=/src/main.js

Steps to reproduce

1、open Reproduction link
2、look main.js and App.vue

What is expected?

the “loading...“ DOM display

What is actually happening?

the “loading...“ DOM disappears

@HcySunYang
Copy link
Member

A workaround, use a span tag to wrap the {{ number }}:

<div v-loading="loading"><span>{{ number }}</span></div>

@HcySunYang HcySunYang added 🐞 bug Something isn't working 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels May 11, 2021
@mofipp
Copy link
Author

mofipp commented May 11, 2021

A workaround, use a span tag to wrap the {{ number }}:

<div v-loading="loading"><span>{{ number }}</span></div>

Thanks for your reply and look forward to fixing it.

@HcySunYang HcySunYang added ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. and removed 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels May 11, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. 🐞 bug Something isn't working
Projects
None yet
3 participants
@HcySunYang @mofipp and others