Skip to content

Commit

Permalink
Merge pull request jsonform#235 from elibus/fix-issue-233
Browse files Browse the repository at this point in the history
Fix issue jsonform#233 - remove expanded class on insert
  • Loading branch information
tchapi authored May 21, 2019
2 parents 80befb7 + 16401a3 commit 90423cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/jsonform.js
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,8 @@ jsonform.elementTypes = {
'</fieldset>',
onInsert: function (evt, node) {
$('.expandable > div, .expandable > fieldset', node.el).hide();
// See #233
$(".expandable", node.el).removeClass("expanded");
}
},
'advancedfieldset': {
Expand All @@ -1183,6 +1185,8 @@ jsonform.elementTypes = {
'</fieldset>',
onInsert: function (evt, node) {
$('.expandable > div, .expandable > fieldset', node.el).hide();
// See #233
$(".expandable", node.el).removeClass("expanded");
}
},
'authfieldset': {
Expand All @@ -1196,6 +1200,8 @@ jsonform.elementTypes = {
'</fieldset>',
onInsert: function (evt, node) {
$('.expandable > div, .expandable > fieldset', node.el).hide();
// See #233
$(".expandable", node.el).removeClass("expanded");
}
},
'submit':{
Expand Down

0 comments on commit 90423cf

Please sign in to comment.