Skip to content

Commit

Permalink
keep both for backward compatibility
Browse files Browse the repository at this point in the history
Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
  • Loading branch information
HanJaeJoon and heath-freenome committed May 12, 2024
1 parent c90470d commit e9dcbbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ export default class Form<
action,
autoComplete,
enctype,
acceptcharset,
acceptCharset,
noHtml5Validate = false,
disabled = false,
Expand Down Expand Up @@ -905,7 +906,7 @@ export default class Form<
action={action}
autoComplete={autoComplete}
encType={enctype}
acceptCharset={acceptCharset}
acceptCharset={acceptCharset || acceptcharset}
noValidate={noHtml5Validate}
onSubmit={this.onSubmit}
as={as}
Expand Down
4 changes: 4 additions & 0 deletions packages/utils/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const PROPERTIES_KEY = 'properties';
export const REQUIRED_KEY = 'required';
export const SUBMIT_BTN_OPTIONS_KEY = 'submitButtonOptions';
export const REF_KEY = '$ref';
/**
* @deprecated Replace with correctly spelled constant `RJSF_ADDITIONAL_PROPERTIES_FLAG`
*/
export const RJSF_ADDITIONAL_PROPERTIES_FLAG = '__rjsf_additionalProperties';
export const RJSF_ADDITIONAL_PROPERTIES_FLAG = '__rjsf_additionalProperties';
export const ROOT_SCHEMA_PREFIX = '__rjsf_rootSchema';
export const UI_FIELD_KEY = 'ui:field';
Expand Down

0 comments on commit e9dcbbb

Please sign in to comment.