Ticket #363 (closed task: fixed)
Validation classes not added to autogenerated autocomplete-control
| Reported by: | sdm | Owned by: | idbr |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.4 |
| Component: | modules/kauri-forms | Version: | |
| Keywords: | autocomplete | Cc: | kauri-discuss@… |
Description
In the forms sample page autocomplete-control.html, the autocomplete-control is defined as follows:
<dl kauri-idref="contact"> <dt><label kauri-role="label"/></dt> <dd><input type="text" kauri-role="acinput"/></dd> </dl>
To test the validation classes, I added a required validator to the "contact" field.
Using the above configuration, the valid/invalid class is added correctly to the dl-tag.
When I remove the predefined HTML, the autocomplete-control is now autogenerated, but no valid/invalid class is added after validation. The "Field is required" message is shown though. This problem was also briefly mentioned in one of the comments of #352
And if I define the autocomplete-control like this:
<dl>
<dt><label kauri-idref="contact" kauri-role="label"/></dt>
<dd><input kauri-idref="contact" type="text" kauri-
role="acinput"/></dd>
</dl>
, the autocomplete-control is autogenerated instead of being linked to the predefined HTML.
Attachments
Change History
comment:1 Changed 3 years ago by idbr
- Owner changed from mpo to idbr
- Status changed from new to accepted