formio / react

JSON powered forms for React.js
https://form.io
MIT License
311 stars 271 forks source link

Collapse does not work #529

Open jhowdenSA opened 1 year ago

jhowdenSA commented 1 year ago

In this form.io example the collapse works when you click on a section like basic, usefields, layout. It does not work in this exhttps://formio.github.io/react-app-starterkit/#/components (builder) unless you click on another section title.

antonSoftensity commented 1 year ago

React Starterkit example doesn't use the js files that bootstrap provides, so in this case this is the default behavior of Formio FormBuilder.

viemmsakh commented 1 year ago

What is this an issue with? This repository or the example you linked to? The example you linked to belongs with the /formio/react-app-starterkit repository. Where as, best I can tell, what you are referring to is the example on Form.io's website here

Either way, those are both just examples and not the underlying code itself...

With the starterkit example it is not using bootstrap and has access to none of the bootstrap functionality.

jhowdenSA commented 1 year ago

I am using formio.js and wanting to have the same collapse functionality as bootstrap does by default. It seems that if I want to get the default bootstrap functionality to work I would need to add the js files that bootstrap provides and override the collapse functionality in WebformBuilder.js which has its own collapse functionality.