guillaumepotier / Parsley.js

Validate your forms, frontend, without writing a single line of javascript
http://parsleyjs.org
MIT License
9.05k stars 1.32k forks source link

Validation Occurs Even on Disabled Elements #1343

Open homestar9 opened 3 years ago

homestar9 commented 3 years ago

What kind of issue is this? (put 'x' between the square brackets)

It looks like Parsley validates disabled form elements. I suppose this issue may fall into the "feature" category if this behavior is intended, however, my gut tells me, that a disabled form field should not be validated.

Here's an example codepen: https://codepen.io/homestar9/pen/NWrYYyZ

Here's an animation of the issue: https://i.imgur.com/SUvfl99.gif

marcandre commented 3 years ago

You are right, Parsley should probably follow the standard here. I haven't changed this for compatibility, and I put in the documentation about the 'excluded' option what should probably be the correct default.