kazupon / vue-validator

:white_check_mark: Validator component for Vue.js
MIT License
2.19k stars 431 forks source link

Not working with select boxes [jsfiddle attached] #169

Closed thatandyrose closed 8 years ago

thatandyrose commented 8 years ago

Can't seem to get the validator to register a required validation with selectboxes.

You can view the bug in the referenced jsfiddle. It work with a text box, but not a select?: https://fiddle.jshell.net/1qd8u5Lk/

kazupon commented 8 years ago

You need to set <option value="">--- select --></option>.

thatandyrose commented 8 years ago

@kazupon hmm but sometimes we don't want an empty value? I think the validator should know that nothing is selected by seeing that there are no selected options?

This sounds like a bug to me no @kazupon? Could you point me to the bit of code that looks for this, maybe I can issue a PR?

kazupon commented 8 years ago

I think the validator should know that nothing is selected by seeing that there are no selected options?

I want to know that use-cases. Can you provide with the example code please ?

Could you point me to the bit of code that looks for this, maybe I can issue a PR?

Yes, You can push the PR. I'll be anytime waiting for your PR. :)

kazupon commented 8 years ago

Close (in-activity)