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

An exception is raised when updating the JSON property at runtime #5599

Closed
JaneSjs opened this issue Jun 19, 2024 · 0 comments · Fixed by surveyjs/survey-library#8449
Closed
Assignees
Labels
bug user issue An issue or bug reported by users.
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jun 19, 2024

T18641 - error when adding json in creator
https://surveyjs.answerdesk.io/internal/ticket/details/T18641


The task is to update a survey at runtime and add additional questions. The survey JSON definition is updated, however, the following exception is thrown after assigning an updated survey to creator.JSON.
View Demo

index.js:27 ERROR 
TypeError: Cannot read properties of undefined (reading 'fire')
    at ./src/base.ts.Base.afterRerender (survey.core.js:2928:34)
    at DesignerSurveyComponent.afterUpdate (survey-angular-ui.js:1062:13)
    at eval (survey-angular-ui.js:1039:14)
    at _ZoneDelegate.invokeTask (zone.js:406:31)
    at Object.onInvokeTask (core.mjs:26367:33)
    at _ZoneDelegate.invokeTask (zone.js:405:60)
    at Zone.runTask (zone.js:178:47)
    at drainMicroTaskQueue (zone.js:585:35)
    at invokeTask (zone.js:491:21)
    at ZoneTask.invoke (zone.js:476:48)
    at data.args.<computed> (zone.js:2385:32)
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users. labels Jun 19, 2024
@RomanTsukanov RomanTsukanov changed the title The Cannot read properties of undefined (reading 'fire') exception is thrown when updating creator.JSON at runtime An exception is raised when updating the JSON property at runtime Jun 25, 2024
@OlgaLarina OlgaLarina added this to the v1.11.4 milestone Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants