-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
fix(VNumberInput): prevent NaN & properly handle js number quirks #20211
Conversation
I can see number of test cases failing. In particular min/max enforcement. Did you mean to move it inside There is also a bit of inconsistency in the emitted value type. Up/Down emit
The trajectory of the changes suggests we cannot go back to emitting
Issues:
|
d8c02ce
to
765b0aa
Compare
I am glad to see some progress :) We don't need the Couple of weird behaviors I think are not exactly obvious, but may be important:
|
Clearable works, but I still get initial There is one new bug
While can see it is very easy to patch with a single |
Fixed, it should only emit |
packages/vuetify/src/labs/VNumberInput/__tests__/VNumberInput.spec.cy.tsx
Outdated
Show resolved
Hide resolved
packages/vuetify/src/labs/VNumberInput/__tests__/VNumberInput.spec.cy.tsx
Outdated
Show resolved
Hide resolved
All VTextField's Regardless, I think internals will change yet again, but I don't want to stress about uncovered use case that bounces between broken and working states. Could you include following test scenarios? 😃
|
The reason of double way binding is: in the case of Could be a nice feature in |
And you achieve this with |
@J-Sek feel free to make a tweaking PR to |
If no more comments, ready to merge in |
Edit: I checked out the wrong branch, sorry There is still a problem of using up/down while typing. |
fixes #19798
fixes #20171
Description
Markup: