Skip to content

【重要】[Vue warn]: Failed setting prop "size" on <input>: value 0 is invalid. DOMException: Index or size is negative or greater than the allowed amount #5514

@35871342

Description

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

Version

3.1.0

Environment

Vue3、Vite、TypeScript

Reproduction link

https://vvbin.cn/next/#/dashboard/analysis

Steps to reproduce

项目开发阶段

What is expected?

期望能解决掉这个警告,size=‘0’为dom不允许,不妨碍使用,但浏览器F12调试的时候,出一堆错误信息,希望能解决掉。

What is actually happening?

[Vue warn]: Failed setting prop "size" on : value 0 is invalid. DOMException: Index or size is negative or greater than the allowed amount
at <ClearableLabeledInput class="components-overview-search" auto-focus="" onUpdate:value=fn ... >
at <AInput ref="inputRef" value="" onUpdate:value=fn ... >
at <ComponentOverview onVnodeUnmounted=fn ref=Ref< undefined > >
at
at <ACol xxxl=20 xxl=20 xl=19 ... >
at
at <Layout onVnodeUnmounted=fn ref=Ref< undefined > >
at
at <ALocaleProvider locale=
Object { locale: "en", Pagination: {…}, DatePicker: {…}, TimePicker: {…}, Calendar: {…}, global: {…}, Table: {…}, Modal: {…}, Popconfirm: {…}, Transfer: {…}, … }
ANT_MARK__="internalMark" >
at <LocaleReceiver children=fn >
at <AConfigProvider locale=
Object { locale: "en", Pagination: {…}, DatePicker: {…}, TimePicker: {…}, Calendar: {…}, global: {…}, Table: {…}, Modal: {…}, Popconfirm: {…}, Transfer: {…}, … }

at



git上下载了antdv的3.1.1的源代码,运行起来后,在浏览器F12查看,确定是antdv产生的问题,希望能解决。

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