summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6b8701c)
JS CBI fields have no parent form element anymore.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
validate: function() {
/* element is detached */
validate: function() {
/* element is detached */
- if (!findParent(this.field, 'form'))
+ if (!findParent(this.field, 'body'))
return true;
this.field.classList.remove('cbi-input-invalid');
return true;
this.field.classList.remove('cbi-input-invalid');