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

Input errors stop the component completely #243

Closed
SteveEdson opened this issue Sep 25, 2018 · 2 comments
Closed

Input errors stop the component completely #243

SteveEdson opened this issue Sep 25, 2018 · 2 comments

Comments

@SteveEdson
Copy link

I'm using a slider and an input field that are both bound to the same data property. My slider has min and max values, so when the user uses the input field instead, for example deleting the default value, to type another, the slider errors with a message

"The value of the slider is , the minimum value is X, the value of this slider can not be less than the minimum value"

This is fine, but the issue is that this error stops all functionality from there on. Is there a way that this can just throw a warning, or a way to re-initialise the slider so that the user can correct their input and carry on as normal?

Thanks

@NightCatSama
Copy link
Owner

You can bind a component's value without using v-model.

https://jsfiddle.net/2xy72dod/8579/

@SteveEdson
Copy link
Author

Thanks

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

No branches or pull requests

2 participants