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

Issue with theming #36

Closed
fridaystreet opened this issue May 16, 2019 · 1 comment
Closed

Issue with theming #36

fridaystreet opened this issue May 16, 2019 · 1 comment

Comments

@fridaystreet
Copy link

Hi,

This library looks great, I'm a keen follower of any work in the space using schemas to automate code. I see you're rewriting a new version, but doesn't seem to be much doco there yet. In the meantime thought I'd try this version on a small survey form project I have.

All good, managed to get things up and running with the default theme, but when I tried to put in the theme from the theme doco in your wiki, I get the following error when I type anything in the field. Apologies if this is more react-jsonschema related, but any hints would be greatly appreciated.

index.js:1375 Warning: A component is changing an uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components
in input (created by Input)
in div (created by Input)
in Input (at ApplicationForm.js:31)
in StringField (created by SchemaField)
in div (created by FormField)
in FormField (at ApplicationForm.js:14)
in FieldTemplate (created by SchemaField)
in SchemaField (created by ObjectField)
in div (at ApplicationForm.js:23)
in ObjectFieldTemplate (created by ObjectField)
in ObjectField (created by SchemaField)
in div (created by FormField)
in FormField (at ApplicationForm.js:14)
in FieldTemplate (created by SchemaField)
in SchemaField (created by ObjectField)
in div (at ApplicationForm.js:23)
in ObjectFieldTemplate (created by ObjectField)
in ObjectField (created by SchemaField)
in div (created by FormField)
in FormField (at ApplicationForm.js:14)
in FieldTemplate (created by SchemaField)
in SchemaField (created by Form)
in form (created by Form)
in Form (created by FormRenderer)
in FormRenderer (created by ApolloForm)
in div (created by ApolloForm)
in ApolloForm (at App.js:39)
in div (at App.js:38)
in App (at src/index.js:8)

Cheers
Paul

@charlypoly
Copy link
Owner

Hi @fridaystreet,

If you just getting started with react-apollo-form, I highly advise you to take a look to the new version: https://frontier-forms.dev

You will find all the needed documentation with a way simpler API than the one exposed by react-apollo-form, especially regarding theming.

Unfortunately, no patch will be developed on react-apollo-form in the future.
However, a migration guide will be soon provided for users using react-apollo-form.

Thanks for you comprehension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants