diff --git a/packages/core/src/components/fields/MultiSchemaField.js b/packages/core/src/components/fields/MultiSchemaField.js
index fb4e53729b..1403c3592e 100644
--- a/packages/core/src/components/fields/MultiSchemaField.js
+++ b/packages/core/src/components/fields/MultiSchemaField.js
@@ -111,6 +111,7 @@ class AnyOfField extends Component {
options,
registry,
uiSchema,
+ schema,
} = this.props;
const _SchemaField = registry.fields.SchemaField;
@@ -139,7 +140,9 @@ class AnyOfField extends Component {
{
});
expect(node.querySelectorAll("select")).to.have.length.of(1);
+ expect(node.querySelector("select").id).eql("root__anyof_select");
});
it("should assign a default value and set defaults on option change", () => {
diff --git a/packages/core/test/oneOf_test.js b/packages/core/test/oneOf_test.js
index ca5badf76c..4d4dca922c 100644
--- a/packages/core/test/oneOf_test.js
+++ b/packages/core/test/oneOf_test.js
@@ -52,6 +52,7 @@ describe("oneOf", () => {
});
expect(node.querySelectorAll("select")).to.have.length.of(1);
+ expect(node.querySelector("select").id).eql("root__oneof_select");
});
it("should assign a default value and set defaults on option change", () => {