Skip to content

Commit e9dcbbb

Browse files
keep both for backward compatibility
Co-authored-by: Heath C <[email protected]>
1 parent c90470d commit e9dcbbb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/core/src/components/Form.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ export default class Form<
870870
action,
871871
autoComplete,
872872
enctype,
873+
acceptcharset,
873874
acceptCharset,
874875
noHtml5Validate = false,
875876
disabled = false,
@@ -905,7 +906,7 @@ export default class Form<
905906
action={action}
906907
autoComplete={autoComplete}
907908
encType={enctype}
908-
acceptCharset={acceptCharset}
909+
acceptCharset={acceptCharset || acceptcharset}
909910
noValidate={noHtml5Validate}
910911
onSubmit={this.onSubmit}
911912
as={as}

packages/utils/src/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export const PROPERTIES_KEY = 'properties';
2323
export const REQUIRED_KEY = 'required';
2424
export const SUBMIT_BTN_OPTIONS_KEY = 'submitButtonOptions';
2525
export const REF_KEY = '$ref';
26+
/**
27+
* @deprecated Replace with correctly spelled constant `RJSF_ADDITIONAL_PROPERTIES_FLAG`
28+
*/
29+
export const RJSF_ADDITIONAL_PROPERTIES_FLAG = '__rjsf_additionalProperties';
2630
export const RJSF_ADDITIONAL_PROPERTIES_FLAG = '__rjsf_additionalProperties';
2731
export const ROOT_SCHEMA_PREFIX = '__rjsf_rootSchema';
2832
export const UI_FIELD_KEY = 'ui:field';

0 commit comments

Comments
 (0)