element
element copied to clipboard
$refs is empty when el-dialog is first opened
Element UI version
1.3.7
OS/Browsers version
all
Vue version
2.3.4
Reproduction Link
https://github.com/zzzgit/somethingwrong
Steps to reproduce
- npm run dev
- click on the button
- a dialog will be shown,but $refs is empty
- close the dialog
- click the button again
- now $refs is not empty
What is Expected?
don't be empty when @show is emited
What is actually happening?
https://jsfiddle.net/5qvjkrps/
The content inside Dialog won't be rendered until Dialog pops up. So handle it in the next tick.
so that