Skip to content

Commit

Permalink
fix: show error list playground (#3218)
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
jacqueswho and heath-freenome committed Oct 31, 2022
1 parent 7e88e0b commit 9b015ac
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 9b015ac

Please sign in to comment.