Skip to content

The content of the template passed to slot option is not updated #582

Closed
@38elements

Description

@38elements

Version

1.0.0-beta.15

Reproduction link

wrapper5.trigger('keydown')

Steps to reproduce

Changing as below.

const wrapper5 = mountingMethod(ComponentWithSlots, { slots: { default: '1{{ foo }}2' }})
expect(wrapper5.find('main').html()).to.equal('<main>1bar2</main>')
wrapper5.trigger('keydown')
const wrapper6 = mountingMethod(ComponentWithSlots, { slots: { default: '<p>1</p><p>2</p>' }})

      const wrapper5 = mountingMethod(ComponentWithSlots, { slots: { default: '1{{ foo }}2' }})
      expect(wrapper5.find('main').html()).to.equal('<main>1bar2</main>')
      wrapper5.trigger('keydown')
      expect(wrapper5.find('main').html()).to.equal('<main>1BAR2</main>') // add this line
      const wrapper6 = mountingMethod(ComponentWithSlots, { slots: { default: '<p>1</p><p>2</p>' }})

What is expected?

The content of the template passed to slot option is updated.

What is actually happening?

The content of the template passed to slot option is not updated.


Would you please check below links?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions