Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a bug in the n-input #93

Closed
XieZongChen opened this issue Jun 12, 2021 · 3 comments · Fixed by #94
Closed

There is a bug in the n-input #93

XieZongChen opened this issue Jun 12, 2021 · 3 comments · Fixed by #94
Labels
bug Something isn't working

Comments

@XieZongChen
Copy link
Collaborator

Environment Info

  • Naive UI version: 2.11.7
  • Vue version: 3.0.11
  • Browser Info: Chrome(89.0.4389.128)
  • System Info: Mac OS 11.2.3

Reproduction link

<n-input
      v-model:value="form.functionalExpectations"
      type="textarea"
      placeholder="请输入"
      :autosize="{ minRows: 2, maxRows: 5 }"
    ></n-input>

image

Steps to reproduce

When I set the minRows and maxRows properties at the same time, entering a lot of text will stretch the textarea horizontally

What is expected?

What is actually happening?

@07akioni 07akioni added bug Something isn't working need reproduction labels Jun 12, 2021
@07akioni
Copy link
Collaborator

image

It works in the demo page. A reproduction link is needed.

@XieZongChen
Copy link
Collaborator Author

I'm sorry I didn't explain the root cause before. After checking again, I found that the above problems only occurred after using < n-form-item >

Reproduction link:

https://github.com/amadeus711/issue-demo

The code in src/components/Demo.vue

Reproduction steps:

  1. clone
  2. install
  3. npm run dev

@XieZongChen
Copy link
Collaborator Author

I'll fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants