question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

validate although input is disabled

See original GitHub issue

Versions:

  • 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maarten-kieftcommented, Sep 27, 2018

Haven’t tried it myself, but can’t you make the field readonly in such case? With css you can make it look disabled …

0reactions
piyushSinghalDemocommented, Sep 18, 2019

@logaretm can we have little example i tried on #2016 but it was little difficult to understand

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found