Skip to content

Modal 弹窗内部组件直接使用v-if热更新失效 #8423

@rylwl

Description

@rylwl
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

Windows 11,Edge(chromium142),vue3.5

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Modal内写一个自定义组件,直接在自定义组件上使用v-if,然后在自定义组件内修改msg,保存

What is expected?

页面上热更新显示最新修改的msg

What is actually happening?

页面无反应,热更新不生效


我尝试过,如果用div包一层,把v-if放在div上就是正常的;我还怀疑过是不是teleport导致的,后面尝试自己teleport一个div到外面测试,发现也是正常的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions