Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override array value vs ordinary value in setPropertyValue #3153

Closed
andrewtelnov opened this issue Jul 29, 2021 · 0 comments
Closed

Override array value vs ordinary value in setPropertyValue #3153

andrewtelnov opened this issue Jul 29, 2021 · 0 comments
Labels
Milestone

Comments

@andrewtelnov
Copy link
Member

The following code doesn't work correctly:

var question = survey.getAllQuestions()[0];
question.setPropertyValue("testValue", [1, 2, 3]);
question.setPropertyValue("testValue", "abc");
console.log(question.getPropertyValue("testValue"));

Instead of "abc", the result will be ['a', 'b', 'c'] and it is incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants