Element: $refs is empty when el-dialog is first opened

Created on 3 Jul 2017  ·  2Comments  ·  Source: ElemeFE/element

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

  1. npm run dev
  2. click on the button
  3. a dialog will be shown,but $refs is empty
  4. close the dialog
  5. click the button again
  6. now $refs is not empty

What is Expected?

don't be empty when @show is emited

What is actually happening?

Most helpful comment

https://jsfiddle.net/5qvjkrps/

The content inside Dialog won't be rendered until Dialog pops up. So handle it in the next tick.

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings