Skip to content

Commit

Permalink
select only input checkbox el for fieldset toggle
Browse files Browse the repository at this point in the history
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 cc988df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commonjs/frontend-form/field/field-set.js
Expand Up @@ -3,7 +3,7 @@ var Field = require('kwf/frontend-form/field/field');
var kwfExtend = require('kwf/extend'); var kwfExtend = require('kwf/extend');
var onReady = require('kwf/on-ready'); 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) { if (!c.get(0).checked) {
c.closest('fieldset').addClass('kwfFormContainerFieldSetCollapsed'); c.closest('fieldset').addClass('kwfFormContainerFieldSetCollapsed');
Expand Down

0 comments on commit cc988df

Please sign in to comment.