You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I attempted to manually attach a bunch of the formio properties after the library is loaded on client side, but I keep getting an error "cannot read property of undefined 'key'"
I can confirm from the console log that my component is successfully added to the list of Formio components, I just don't know what properties I am missing to make this work with the renderer.
Any assistance would be much appreciated.
The text was updated successfully, but these errors were encountered:
I think component the Component you need to add needs to be a of an specific type, not any react component c.Components.setComponent("button", Button); . Since your component is missing serveral properties and methods for a proper rendering that is why you are getting this error
Environment
Please provide as many details as you can:
Steps to Reproduce
Expected behavior
Creating a custom component as per the examples would allow me to replace components in my forms with a component I create.
Observed behavior
Numerous errors occur when trying to get the custom component working and I cannot find any workaround.
Example
If possible, please provide a screenshot, live example (via JSFiddle or similar), and/or example code to help demonstrate the issue.
For code or form JSON, please enclose in a code block:
Here is my current attempted workaround:
Button.js
snippet from Index.js
I attempted to manually attach a bunch of the formio properties after the library is loaded on client side, but I keep getting an error "cannot read property of undefined 'key'"
I can confirm from the console log that my component is successfully added to the list of Formio components, I just don't know what properties I am missing to make this work with the renderer.
Any assistance would be much appreciated.
The text was updated successfully, but these errors were encountered: