surveyjs / custom-widgets

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

iCheck issues #116

Closed comur closed 5 years ago

comur commented 5 years ago

Hello,

I have multiple issues with icheck when using surveyjs-widgets package.

  1. If I load the survey with a timeout (as it's loaded from an api it takes < 1s) and if I activated iCheck, I have checkbox elements added multiple times for each checkbox.
  2. Checkboxes are also showed like radio buttons (if I understand it's a regression #28 ).
  3. if I have survey data at the beginning (no load from API), iCheck is not applied.

You can reproduce the bug on https://github.com/surveyjs/surveyjs_react_quickstart If you don't add any timeout on componentWillMount to update survey data, it wont show icheck, if you add a timeout, it will show you icheck like in the screenshot image

tsv2013 commented 5 years ago

It's a but. I think it is caused by the https://github.com/surveyjs/survey-library/commit/6bb00a867481ae68e97dddad9804b03c3cb96749 commit

comur commented 5 years ago

Thx @tsv2013 Do you have a workaround ? We are stick on this bug to be able to use this lib... Maybe override something ?

tsv2013 commented 5 years ago

There is no workaround unfortunately I'm working on the fix right now

comur commented 5 years ago

Thx a lot !

tsv2013 commented 5 years ago

Fix will be available in the nearest update, most likely today

comur commented 5 years ago

Hello @tsv2013 Did you have the time to push the update ? How can I get it please ? Thx

comur commented 5 years ago

I saw that you created a new release 1.0.84 and tested it, I have exactly the same behavior... Radio vs checkboxes : image Multiplying elements when clicked: image