Subscribe on changes!

An unknown error occurred while using <transition>.

avatar
May 16th 2021

Version

3.0.11

Reproduction link

link

bug

Steps to reproduce

  1. Open the console panel.
  2. Click on tthe ext.
  3. Remove transiton in the Modal.vue.
  4. Click on the text again.

What is expected?

The content should update when click on the text.

What is actually happening?

In this example, the content is not updated when transition is used.

avatar
May 16th 2021

The content of the slot needs to be passed like this:

return h(
            Modal,
            {
              modelValue: true,
              ref: 'modal'
            },
            {
              default:()=>[h('div', [h('div', footerVNodes)])]
            }
          )
avatar
May 17th 2021

The content of the slot needs to be passed like this:

return h(
            Modal,
            {
              modelValue: true,
              ref: 'modal'
            },
            {
              default:()=>[h('div', [h('div', footerVNodes)])]
            }
          )

Thanks, i corrected it, but it still doesn't work.