Skip to content
New issue

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

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

Already on GitHub? # to your account

q-numeric with undefined v-model shows 1 #333

Closed
alexey2baranov opened this issue Jan 19, 2017 · 5 comments
Closed

q-numeric with undefined v-model shows 1 #333

alexey2baranov opened this issue Jan 19, 2017 · 5 comments
Milestone

Comments

@alexey2baranov
Copy link

alexey2baranov commented Jan 19, 2017

Hello!

<q-numeric v-model="some_variable_with_undefined_value" :min="1" :max="9999"></q-numeric>

this shows 1 but should nothing

@rstoenescu
Copy link
Member

You're using min and max, so the value is converted to something within the interval. Using undefined as v-model is a user error anyway.

@alexey2baranov
Copy link
Author

i am not shure you are right. Let suppose my client should input his appartment number. As you can imagine it is from 1 up to 9000

in clear html we will do this as https://jsfiddle.net/ohe7m7p3/ At the initial state input is clear. But when user start typing input value never lower then min value. This is exactly what i need
how can i get same behavior with quasar?

@rstoenescu
Copy link
Member

Will re-analyze the component. Don't have time at the moment to take a decision but I'll take care of this in the next few days.

@rstoenescu rstoenescu reopened this Jan 19, 2017
@alexey2baranov
Copy link
Author

thank you again!

@rstoenescu
Copy link
Member

Fix available in edge version and in future v0.13 (to be released really soon).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants