Parameter controls not working #232
Replies: 1 comment 1 reply
-
Hey @jacob-carlborg-apoex thanks for the all the info and sorry you are running into problems. This is not one I've come across I have to say. Can I ask you to open this as an issue rather than a discussion? And if you could provide details of what versions of rails/viewcomponent/lookbook etc you are running that would help me with trying to figure out what is going on here. If possible, if you could also copy and paste an example of the preview method code with the I assume your application is not open-source so that I could take a look at it myself? |
Beta Was this translation helpful? Give feedback.
-
I've integrated Lookbook to our application but some of the parameter controls are not working. The once I've tested which are not working are:
toggle
andselect
. Nothing happens when I click on a toggle or a select box. It seems to be some issue with the JavaScript, but there are no errors in the browser console. The tree that lists the components are working properly so the JavaScript is not completely broken. If I change the parameter type totext
everything works fine and the preview is automatically updated when I change the parameter value. I've tested this in Safari (16.1 (18614.2.9.1.12)) and Chrome (107.0.5304.87 (Official Build) (arm64)).I've also tested to generate a new Rails application with ViewComponent and Lookbook and then everything works as expected. So there's something weird with the setup/configuration in our application.
Any ideas how to debug this?
I've included the debug data from Lookbook below. Note,
config.components_path
is not correct. We have our components inapp/frontend/components
andapp/frontend/pages
.Beta Was this translation helpful? Give feedback.
All reactions