@rjsf/core 5.20.0 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/components/Form.tsx
CHANGED
|
@@ -948,9 +948,9 @@ export default class Form<
|
|
|
948
948
|
const registry = this.getRegistry();
|
|
949
949
|
const { SchemaField: _SchemaField } = registry.fields;
|
|
950
950
|
const { SubmitButton } = registry.templates.ButtonTemplates;
|
|
951
|
-
// The `semantic-ui`
|
|
951
|
+
// The `semantic-ui` theme has an `_internalFormWrapper` that take an `as` prop that is the
|
|
952
952
|
// PropTypes.elementType to use for the inner tag, so we'll need to pass `tagName` along if it is provided.
|
|
953
|
-
// NOTE, the `as` prop is native to `semantic-ui`
|
|
953
|
+
// NOTE, the `as` prop is native to `semantic-ui`
|
|
954
954
|
const as = _internalFormWrapper ? tagName : undefined;
|
|
955
955
|
const FormTag = _internalFormWrapper || tagName || 'form';
|
|
956
956
|
|