Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show error list playground #3218

Merged
merged 3 commits into from Oct 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/playground/src/app.jsx
Expand Up @@ -21,7 +21,7 @@ const liveSettingsSchema = {
omitExtraData: { type: "boolean", title: "Omit extra data" },
liveOmit: { type: "boolean", title: "Live omit" },
noValidate: { type: "boolean", title: "Disable validation" },
showErrorList:{ type: "string", "default":"top", title: "Show Error List", enum:[false,"top","bottom"] }
showErrorList:{ type: "string", "default": "top", title: "Show Error List", enum:[false,"top","bottom"] }
},
};

Expand Down Expand Up @@ -351,6 +351,7 @@ class Playground extends Component {
validator,
subtheme: null,
liveSettings: {
showErrorList:'top',
validate: false,
disable: false,
readonly: false,
Expand Down Expand Up @@ -639,6 +640,7 @@ class Playground extends Component {
omitExtraData={liveSettings.omitExtraData}
liveOmit={liveSettings.liveOmit}
noValidate={liveSettings.noValidate}
showErrorList={liveSettings.showErrorList}
schema={schema}
uiSchema={uiSchema}
formData={formData}
Expand Down