Skip to content

"placeholder" of a-input is not HMR if a-input is surrounded with other ant component #5264

Open
@ly-sniper

Description

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

Version

3.0.0-beta.9

Environment

"vue": "^3.2.25", "vite": "^2.8.0",

Reproduction link

http://nosite.com

Steps to reproduce

<script setup lang="ts">
import { ref } from "vue";
// 1:value必须是Ref类型
const value = ref();
</script>

<template>
  <a-space>
    <!-- 2: a-input必须在ant component内部 -->
    <a-input v-model:value="value" placeholder="1234" />
  </a-space>
</template>

1: 测试页面如上(注释1和注释2必须同时满足)
2:修改a-input的placeholder后保存页面, 无法完成热更新

What is expected?

期望可以实现placeholder的HMR

What is actually happening?

placeholder无法HMR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions