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

[Knockout] An exception is thrown when a collapsed panel contains a Multi-Select Matrix #7355

Closed
JaneSjs opened this issue Nov 15, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Nov 15, 2023

View Plunker
If a panel is collapsed by default ("state": "collapsed"), the following exception appears:

survey.core.min.js:6 Uncaught TypeError: Cannot read properties of null (reading 'forEach')
    at t.collectNestedQuestonsInRows (survey.core.min.js:6:451434)
    at t.collectNestedQuestionsCore (survey.core.min.js:6:451325)
    at t.collectNestedQuestions (survey.core.min.js:6:304046)
    at t.onHidingContent (survey.core.min.js:6:450917)
    at survey.core.min.js:6:847134
    at Array.forEach (<anonymous>)
    at t.notifyStateChanged (survey.core.min.js:6:847104)
    at t.set (survey.core.min.js:6:238940)
    at e.setValue (survey.core.min.js:6:62862)
    at e.valueToObj (survey.core.min.js:6:86450)

It works in React (demo).

@JaneSjs JaneSjs added the bug label Nov 15, 2023
@JaneSjs JaneSjs changed the title [Knockout] The Uncaught TypeError: Cannot read properties of null (reading 'forEach') exception is thrown when a Collapsed Panel Contains a Multi-Select Matrix with column [Knockout] The Uncaught TypeError: Cannot read properties of null (reading 'forEach') exception is thrown when a Collapsed Panel Contains a Multi-Select Matrix Nov 15, 2023
@andrewtelnov andrewtelnov self-assigned this Nov 16, 2023
@andrewtelnov
Copy link
Member

@JaneSjs It has been fixed in v1.9.117. Here is the updated example.
I will add a unit test on it.

andrewtelnov added a commit that referenced this issue Nov 16, 2023
@RomanTsukanov RomanTsukanov changed the title [Knockout] The Uncaught TypeError: Cannot read properties of null (reading 'forEach') exception is thrown when a Collapsed Panel Contains a Multi-Select Matrix [Knockout] An exception is thrown when a collapsed panel contains a Multi-Select Matrix Nov 21, 2023
@OlgaLarina OlgaLarina added this to the v1.9.118 milestone Nov 28, 2023
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

3 participants