Skip to content

a-input works incorrect with passed property as object field with default value #6412

@vmusulainen

Description

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

Version

3.2.13

Environment

ant-design-vue 3.2.13; vue-3.2.37

Reproduction link

Edit on CodeSandbox

Steps to reproduce

lets App.vue be as

<script setup> import HelloWorld from './components/HelloWorld.vue' const model = {name: 'initial value'} </script>

and HelloWorl.vue as

<script setup> import { defineProps, } from 'vue'; defineProps(['name']) </script>

Input characters in both inputs.

The both inputs display "initial value", but only plain input can work correctly wint user input - all changes passed to model.
The always displaying "initial value" and pass to model "initial value" with just pressed character.

What is expected?

The behaviour should be as plain html input.

What is actually happening?

The always displaying "initial value" and pass to model "initial value" with just pressed character.

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