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

[Feature Request] VNumberInput disable manual input #20840

Open
Stevie-Ray opened this issue Jan 6, 2025 · 0 comments
Open

[Feature Request] VNumberInput disable manual input #20840

Stevie-Ray opened this issue Jan 6, 2025 · 0 comments

Comments

@Stevie-Ray
Copy link

Problem to solve

The issue arises when users manually enter a value in a number input field, bypassing constraints like the step prop. This can lead to inconsistent behavior and confusion. Making the input read-only would enforce the use of increment and decrement buttons, aligning user input with the intended constraints.

Proposed solution

Introduce a disableInput prop (or similar) to allow developers to make the input field read-only. When this prop is enabled, users can only change the value using the increment and decrement buttons.

props: {
  disableInput: {
    type: Boolean,
    default: false,
  },
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant