Closed Mat-Sedkowski closed 3 months ago
@Mat-Sedkowski We are currently using knockoutJS in survey-jquery. You can use survey-jquery-ui with survey-core
that we have just released. It uses pReact version of our library.
knockoutJS is an old library and it uses eval
inside the library. There is nothing wrong with it since it uses eval
for their templates.
Thank you, Andrew
Thank you, CSP issue solved.
I've switched to survey-jquery-ui and our survey.render(container)
seems to stopped working.
I've compared render
method definitions between libraries and here's what I've found:
survey-jquery:
function(element) {
if (element === void 0) {
element = null;
}
this.implementor.render(element);
}
survey-jquery-ui:
function(element) {
if (element === void 0) {
element = null;
}
if (this.renderCallback) {
this.renderCallback();
}
}
Any ideas on what I'm missing to make survey-jquery-ui
render surveys properly? Currently nothing's rendered and I don't see any JS console errors.
"survey-core": "^1.11.5",
"survey-jquery-ui": "^1.11.5",
@marat-y Thank you for pointing this out. We'll fix it. Meanwhile we decided to deprecate the survey-jquery-ui
package: actually it is the survey-react-ui
package with the preact engine embedded. It uses jQuery to add three rendering functions to it. We decided to replase this package with the survey-ui
one that will not reference jQuery and can be uased as a blackbox in vanilla JS projects.
Are you requesting a feature, reporting a bug or asking a question?
Reporting a bug / Asking a question
What is the current behavior?
I have an issue with your library after we turned on CSP. Current implementation in rails app via Stimulus controller is prone to CSP violation both in inline styles and script.
What is the expected behavior?
Implementation where I don't need to apply inline code/styles or a method to fetch nonce from page meta
How would you reproduce the current behavior (if this is a bug)?
survey-jquery
in package jsonProvide the test code and the tested page URL (if applicable)
Test code
Specify your