Skip to content

form input error #5177

@yuyang1004

Description

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

Version

3.0.0-beta.7

Environment

3.0.0-beta.7 vue3

Reproduction link

https://next.antdv.com/components/input-cn

Steps to reproduce

<script lang="ts"> import { defineComponent } from 'vue' import { Input } from 'ant-design-vue' export default defineComponent({ name: 'Login', components: { [Input.name]: Input }, setup() { return {} } }) </script>

What is expected?

正常访问

What is actually happening?

runtime-dom.esm-bundler.js:219 Uncaught (in promise) DOMException: Failed to set the 'size' property on 'HTMLInputElement': The value provided is 0, which is an invalid size.
at patchDOMProp (http://localhost:8088/assets/js/chunk-vendors.js:65156:21)
at patchProp (http://localhost:8088/assets/js/chunk-vendors.js:65285:17)
at mountElement (http://localhost:8088/assets/js/chunk-vendors.js:60980:25)
at processElement (http://localhost:8088/assets/js/chunk-vendors.js:60952:13)
at patch (http://localhost:8088/assets/js/chunk-vendors.js:60872:21)
at componentEffect (http://localhost:8088/assets/js/chunk-vendors.js:61364:21)
at reactiveEffect (http://localhost:8088/assets/js/chunk-vendors.js:55623:24)
at effect (http://localhost:8088/assets/js/chunk-vendors.js:55598:9)
at setupRenderEffect (http://localhost:8088/assets/js/chunk-vendors.js:61329:89)
at mountComponent (http://localhost:8088/assets/js/chunk-vendors.js:61288:9)

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