Skip to content

Commit

Permalink
Update jsonform.js
Browse files Browse the repository at this point in the history
  • Loading branch information
elibus authored May 19, 2019
1 parent 80befb7 commit 16401a3
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 16401a3

Please sign in to comment.