Closed VerdonTrigance closed 3 years ago
Here is the fixed sample - https://codesandbox.io/s/lucid-wozniak-weem6
Here is the fixed sample - https://codesandbox.io/s/lucid-wozniak-weem6
Are you sure it works? You probably changed something and press Ctrl+S. This results to updating 'select' properly. But refresh page in right tab again. This not working.
This results to updating 'select' properly.
Sorry, but I don't understand you. Could you spoecify the exact steps to reproduce the issue, the expected and actual result?
Your screenshot looks ok for me.
Your screenshot looks ok for me.
Here is no active select2 dropdown as you can see, just ordinary surveyjs dropdown.
One line wasn't saved - https://codesandbox.io/s/lucid-wozniak-weem6?file=/src/SurveyComponent.jsx
One line wasn't saved - https://codesandbox.io/s/lucid-wozniak-weem6?file=/src/SurveyComponent.jsx
Now it works... in sandbox. My project still return TypeError from "PS" part. But I guess it's another topic. Thanks for helping out.
Hi there. I found unexpected problems with widget initialization in functional components: https://codesandbox.io/s/reverent-christian-13hzr?file=/src/SurveyComponent.jsx
How to init select2 widget properly with such approach? Looks like all scripts in place, because I can type: $("#sq_100i").select2() in a console and this would work as expected. But select2 not applied automatically in Survey.Survey component. What I'm doing wrong?
PS: I also facing with such error: I found this part in file \node_modules\select2\dist\js\select2.js, but it shouldn't loads that way. It should be like: