Skip to content

Failed setting prop "size" on <input>: value 0 is invalid. #6616

@ivanmem

Description

@ivanmem

Vue version

3.2.38

Link to minimal reproduction

https://codesandbox.io/s/peaceful-fermat-f8l7q1?file=/src/InputComponent.vue

Steps to reproduce

  1. Create a component for input.
  2. Add the option to specify :size via props.
  3. Use a component and don't specify size.

What is expected?

No warning.

What is actually happening?

Warning:
image

System Info

No response

Any additional comments?

No response

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