Skip to content

Commit fadfc04

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

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/core/src/components/Form.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ export interface FormProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
111111
*/
112112
onFocus?: (id: string, data: any) => void;
113113
// <form /> HTML attributes
114+
/** The value of this prop will be passed to the `accept-charset` HTML attribute on the form
115+
* @deprecated replaced with `acceptCharset` which will supercede this value if both are specified
116+
*/
117+
acceptcharset?: string;
114118
/** The value of this prop will be passed to the `accept-charset` HTML attribute on the form */
115119
acceptCharset?: string;
116120
/** The value of this prop will be passed to the `action` HTML attribute on the form
@@ -870,6 +874,7 @@ export default class Form<
870874
action,
871875
autoComplete,
872876
enctype,
877+
acceptcharset,
873878
acceptCharset,
874879
noHtml5Validate = false,
875880
disabled = false,
@@ -905,7 +910,7 @@ export default class Form<
905910
action={action}
906911
autoComplete={autoComplete}
907912
encType={enctype}
908-
acceptCharset={acceptCharset}
913+
acceptCharset={acceptCharset || acceptcharset}
909914
noValidate={noHtml5Validate}
910915
onSubmit={this.onSubmit}
911916
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_ADDITONAL_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)