We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Setting formData has no effect, e.g.:
const schema = { type: ["string"], }; const formData = "a"; const form = new SchemaForm(schema, {formData: formData}); layout.addWidget(form);
results in a empty input field. Same goes for any forms I tried.
SchemaForm renders with data from formData.
formData
jupyter-starters
The issue seems to be with FormModel constructor.
SchemaForm.render() unpacks the variables from model:
SchemaForm.render()
jupyterlab-starters/packages/jupyterlab-rjsf/src/schemaform/index.tsx
Line 73 in 6ee4a81
However, model constructor never sets formData and it ends up being undefined.
Then, finalProps mixes props and formData (among other things)
finalProps
Lines 77 to 97 in 6ee4a81
Since props.formData (which comes from model) is undefined, formData ends up being undefined and not rendered.
props.formData
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
Setting formData has no effect, e.g.:
results in a empty input field. Same goes for any forms I tried.
Expected behavior
SchemaForm renders with data from
formData
.Context
jupyter-starters
version: N/APossible fixes
The issue seems to be with FormModel constructor.
SchemaForm.render()
unpacks the variables from model:jupyterlab-starters/packages/jupyterlab-rjsf/src/schemaform/index.tsx
Line 73 in 6ee4a81
However, model constructor never sets
formData
and it ends up being undefined.Then,
finalProps
mixes props andformData
(among other things)jupyterlab-starters/packages/jupyterlab-rjsf/src/schemaform/index.tsx
Lines 77 to 97 in 6ee4a81
Since
props.formData
(which comes from model) is undefined,formData
ends up being undefined and not rendered.The text was updated successfully, but these errors were encountered: