Skip to content

ReadOnly option doesn't work for a-input-number #2971

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

Closed
1 task done
ruslantau opened this issue Oct 12, 2020 · 6 comments
Closed
1 task done

ReadOnly option doesn't work for a-input-number #2971

ruslantau opened this issue Oct 12, 2020 · 6 comments
Assignees
Labels
Accept You are right, we should do that enhancement outdated

Comments

@ruslantau
Copy link

ruslantau commented Oct 12, 2020

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

Version

1.6.2

Environment

macOS 10.15, Chrome 86.0.864240, ant-design-vue 1.6.2, nuxt 2.13.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Create a-input-number, set his "readonly" property to true and try to change input value.

What is expected?

Input value became unmutable.

What is actually happening?

Input value still mutable.

@tangjinzhou
Copy link
Member

you can try disable

@tangjinzhou tangjinzhou added the Accept You are right, we should do that label Oct 22, 2020
@haroonth
Copy link

haroonth commented Nov 12, 2020

It worked with readOnly
I try it in <a-input>

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Jan 12, 2021
@ruslantau
Copy link
Author

ruslantau commented Jan 13, 2021

It worked with readOnly
I try it in <a-input>

you can try disable

Yes, I try disable option and it works, but the input styles changed to disabled too.
Because of this, I have to copy/paste fix styles for each <a-input-number> in my app.

@ruslantau
Copy link
Author

It worked with readOnly
I try it in <a-input>

It work for <a-input>, but doesnt work for <a-input-number>

@github-actions github-actions bot removed the Stale label Jan 14, 2021
@John60676 John60676 self-assigned this Apr 17, 2021
John60676 added a commit to John60676/ant-design-vue that referenced this issue Apr 20, 2021
@github-actions
Copy link

github-actions bot commented Jun 6, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accept You are right, we should do that enhancement outdated
Projects
None yet
Development

No branches or pull requests

4 participants