surveyjs / custom-widgets

The collection of custom widgets for SurveyJS: Survey Library and Survey Creator :package:
https://surveyjs.io
MIT License
79 stars 78 forks source link

select2tagbox is not displaying in Survey in React Application #161

Open haddyo opened 4 years ago

haddyo commented 4 years ago

Dear Team,

After playing around with survey-react for good amount of time, we are not able to bring 'tagbox' and then i forked 'survey-react' and then figured out to be an issue with survey-react itself.

Please find below the Sandbox where i have forked 'survey-react' and tried to render tagbox

https://codesandbox.io/s/hidden-browser-r1shn?from-embed

tagbox is not rendering there as well.

Can someone help with an solution which i can apply?

Thanks in Advance.

Are you requesting a feature, reporting a bug or asking a question?

Reporting a Bug

What is the current behavior?

Not Rendering TagBox custom Component

https://codesandbox.io/s/hidden-browser-r1shn?from-embed

What is the expected behavior?

Tagbox should be rendered

tsv2013 commented 4 years ago

I've transferred the issue into the corresponding repo. We have a live sample for ReactJS on our site - https://surveyjs.io/Examples/Library/?id=custom-widget-select2-tagbox&platform=Reactjs&theme=modern

We have also the https://github.com/surveyjs/surveyjs_react_quickstart repo deminstrating how to use SurveyJS libraries in the react application. The widget is need to be initialized as shown here - https://github.com/surveyjs/surveyjs_react_quickstart/blob/master/src/App.js#L42

I've just checked this repo and it works ok for me.

haddyo commented 4 years ago

Please find the sandbox i forked using , https://github.com/surveyjs/surveyjs_react_quickstart and i updated the App.js file as you've mentioned. Still i'm not able to see the tagbox. Sandbox: https://codesandbox.io/s/vibrant-sun-kqoei?from-embed

ghazal-karami commented 4 years ago

I have the same issue.