validate although input is disabled
See original GitHub issueVersions:
- VueJs: 2.5.9
- Vee-Validate: 2.0.0-rc.26
Description:
When an input is disabled, validations are not executing. I found this issue https://github.com/baianat/vee-validate/issues/245 (which requested the exact oposite) and its mentioned that there is a disabled property. I tried this but it didn’t work:
v-validate="{ rules: rules, disabled: false }"
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:15 (3 by maintainers)
Top Results From Across the Web
Form input not validate if input is disabled - Stack Overflow
But as the input is disabled he send no values with. And now comes the problem. I validate the form. Here is my...
Read more >disable required input property is not working and still validating.
i got a solution that even the input field is hidden the required property is enabled. so i decided to disable the property....
Read more >Input Disabled HTML Attribute Explained For Inexperienced ...
If a field is disabled , the value of the field is not sent to the server when the form is submitted. If...
Read more ><input>: The Input (Form Input) element - HTML
Looks like a text input, but has validation parameters and relevant keyboard in ... disabled, all, Whether the form control is disabled.
Read more >client-side validation - disabled elements - MSDN
Disabled html elements are not included in a form submission, thus they are not part of the "input", thus I don't think it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Haven’t tried it myself, but can’t you make the field readonly in such case? With css you can make it look disabled …
@logaretm can we have little example i tried on #2016 but it was little difficult to understand