diff --git a/packages/bootstrap-4/src/FieldTemplate/FieldTemplate.tsx b/packages/bootstrap-4/src/FieldTemplate/FieldTemplate.tsx
index af31c97a06..e0191b182b 100644
--- a/packages/bootstrap-4/src/FieldTemplate/FieldTemplate.tsx
+++ b/packages/bootstrap-4/src/FieldTemplate/FieldTemplate.tsx
@@ -16,7 +16,6 @@ const FieldTemplate = ({
rawDescription,
classNames,
disabled,
- hidden,
label,
onDropPropertyClick,
onKeyChange,
@@ -24,10 +23,6 @@ const FieldTemplate = ({
required,
schema,
}: FieldTemplateProps) => {
- if (hidden) {
- return
{children}
;
- }
-
return (
{
- test("show hidden fields if additional properties is true", () => {
- const schema: JSONSchema7 = {
- additionalProperties: true,
- };
- const formData: any = {
- "additionalProperty": 'myValue'
-
- }
- const tree = renderer.create().toJSON();
- expect(tree).toMatchSnapshot();
- });
- test("don't show hidden fields if additionalProperties is false", () => {
+ test("show add button and fields if additionalProperties is true", () => {
const schema: JSONSchema7 = {
- additionalProperties: false,
- };
- const formData: any = {
- "additionalProperty": 'should not appear'
- }
+ additionalProperties: true,
+ };
+ const formData: any = {
+ "additionalProperty": 'should appear'
+ }
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
- });
+ });
});
diff --git a/packages/bootstrap-4/test/__snapshots__/AdditionalProperties.test.tsx.snap b/packages/bootstrap-4/test/__snapshots__/AdditionalProperties.test.tsx.snap
index 3541277c1c..75ecc01030 100644
--- a/packages/bootstrap-4/test/__snapshots__/AdditionalProperties.test.tsx.snap
+++ b/packages/bootstrap-4/test/__snapshots__/AdditionalProperties.test.tsx.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`AdditionalProperties tests don't show hidden fields if additionalProperties is false 1`] = `
+exports[`AdditionalProperties tests show add button and fields if additionalProperties is true 1`] = `
-`;
-
-exports[`AdditionalProperties tests show hidden fields if additional properties is true 1`] = `
-