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

Custom composite question: A newly added dynamic panel disappears when modifying another question's value #8612

Closed
JaneSjs opened this issue Jul 25, 2024 · 0 comments · Fixed by #8613
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jul 25, 2024

T19145 - The dynamic panel will be cleared.
https://surveyjs.answerdesk.io/internal/ticket/details/T19145


Consider the following composite question definition.
View Demo

Survey.ComponentCollection.Instance.add({
    name: 'customQuestion',
    title: 'Custom Composite',
    elementsJSON: [
        {
            type: 'boolean',
            name: 'isCompleted',
        },
        {
          "type": "paneldynamic",
          "name": "question1",
          "templateElements": [
            {
              "type": "text",
              "name": "question2"
            }
          ]
        }
    ],
});

To reproduce the issue, add a new dynamic panel; do not fill question answers. Change a Boolean question's value. You'll see that a newly added dynamic panel disappears. However, if you fill in a dynamic panel's field value, it will remain after updating a Boolean question.

2024-07-25_13-19-28.mp4
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jul 25, 2024
andrewtelnov added a commit that referenced this issue Jul 25, 2024
@RomanTsukanov RomanTsukanov changed the title Composite Questions - A newly added Dynamic Panel disappears when modifying other question's value Custom composite question: A newly added dynamic panel disappears when modifying another question's value Jul 29, 2024
@OlgaLarina OlgaLarina added this to the v1.11.9 milestone Aug 2, 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