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

Bootstrap slider prevents rendering PDF #341

Open j-ulrich opened 9 months ago

j-ulrich commented 9 months ago

We ran into the same issue as reported in https://github.com/surveyjs/survey-pdf/issues/295 but with the bootstrap slider instead of the nouislider:

It also fails with the error message

TypeError: Cannot read properties of undefined (reading 'render')

when calling TextFieldBrick.renderReadOnly().

The Bootstrap slider has the same code as the nouislider before it was fixed in https://github.com/surveyjs/custom-widgets/commit/6bcecf935207d07831bf1de68e1a110af078bc1e#diff-2a4baf2f8527f584abaf850255c207671bc67d6772a28baf7f259cfef011824cR217 so I suspect it's the very same bug as https://github.com/surveyjs/survey-pdf/issues/295.

Example reproducing the issue: https://codesandbox.io/p/sandbox/surveyjs-angular-forked-2g7f2t?file=%2Fsrc%2Fapp%2Fcomponents%2Fpdf.component.ts (Click on "Save as PDF").