Permalink
Browse files

select only input checkbox el for fieldset toggle

there is also an hidden element and this causes some problems
  • Loading branch information...
kaufmo authored and lllHuber committed Nov 6, 2017
1 parent 190f3e1 commit cc988dfaa24807ff63b41357a5b9871c02c22e81
Showing with 1 addition and 1 deletion.
  1. +1 −1 commonjs/frontend-form/field/field-set.js
@@ -3,7 +3,7 @@ var Field = require('kwf/frontend-form/field/field');
var kwfExtend = require('kwf/extend');
var onReady = require('kwf/on-ready');
onReady.onRender('div.kwfUp-kwfFormContainerFieldSet fieldset > legend > input', function fieldSet(c)
onReady.onRender('div.kwfUp-kwfFormContainerFieldSet fieldset > legend > input[type="checkbox"]', function fieldSet(c)
{
if (!c.get(0).checked) {
c.closest('fieldset').addClass('kwfFormContainerFieldSetCollapsed');

0 comments on commit cc988df

Please sign in to comment.