guillaumepotier / Parsley.js

Validate your forms, frontend, without writing a single line of javascript

Home Page:http://parsleyjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validation Occurs Even on Disabled Elements

homestar9 opened this issue · comments

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

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.