elclanrs / jq-idealforms-old

The ultimate framework for building and validating responsive HTML5 forms.
665 stars 95 forks source link

BUG? no error message is displayed for datepicker #167

Open gine opened 11 years ago

gine commented 11 years ago

No error messages is displayed for any kind of filters:

...
'data_scadenza' : {
    filters: 'required date dopo_doc',
    data: { date: 'dd-mm-yyyy' },
    errors: { dopo_doc: 'somethings'},
}, 
...

This is element how is modified by jq-i:

<input id="data_scadenza" class="datepicker  hasDatepicker" type="text" placeholder="dd-mm-yyyy" name="data_doc" autocomplete="off">

Whit fire bug i can see the hidden message element and i think that the problem is that it has the class "hidden". Removing this class on firebug the error message start to work:

<span class="ideal-error hidden" style="display: block;">Campo obbligatorio.</span>

Anyway every flters make the field red o blue.

In minified code you can find .addClass('hidden') start at 19476 and end at 19494 and commented it, all appear fixed. Is it the correct way? Are there some reason for that class?