Skip to content

Commit

Permalink
FIO-5748 Fixed preview not working correctly after hiding/showing it
Browse files Browse the repository at this point in the history
  • Loading branch information
antonSoftensity authored and lane-formio committed Aug 7, 2024
1 parent 93f28a1 commit 4e3425d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/WebformBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,7 @@ export default class WebformBuilder extends Component {
helplinks: this.helplinks,
}));
this.editForm.attach(this.componentEdit.querySelector(`[${this._referenceAttributeName}="editForm"]`));
this.updateComponent(this.editForm.submission.data ?? component);
this.attachEditComponentControls(component, parent, isNew, original, ComponentClass);
});
});
Expand Down
1 change: 1 addition & 0 deletions src/components/panel/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class PanelComponent extends NestedComponent {
icon: 'list-alt',
group: 'layout',
documentation: '/userguide/form-building/layout-components#panel',
showPreview: false,
weight: 30,
schema: PanelComponent.schema()
};
Expand Down

0 comments on commit 4e3425d

Please sign in to comment.