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

Dynamic Panel with visibleIf: Adding a new panel causes the whole question to disappear when inside a composite question #7771

Closed
SeeJayy opened this issue Jan 30, 2024 · 4 comments · Fixed by #7791
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@SeeJayy
Copy link

SeeJayy commented Jan 30, 2024

Are you requesting a feature, reporting a bug or asking a question?

Reporting a bug

What is the current behavior?

Dynamic panels inside Composite questions do not operate correctly when clicking the Add New button

What is the expected behavior?

Dynamic panels should act as normal when inside composite questions

How would you reproduce the current behavior (if this is a bug)?

Create a dynamic panel inside a composite question and try to add a new row (using a template). The entire dynamic panel will disappear. (no console error)

  • browser: Google Chrome
  • browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
  • surveyjs platform (angular or react or jquery or knockout or vue): Vue3
  • surveyjs version: 1.9.127
@andrewtelnov andrewtelnov self-assigned this Jan 31, 2024
@andrewtelnov
Copy link
Member

@SeeJayy Here is the working example. Please fork it, modify it to reproduce the issue and place the link here.

Thank you,
Andrew

@andrewtelnov andrewtelnov removed their assignment Jan 31, 2024
@SeeJayy
Copy link
Author

SeeJayy commented Feb 1, 2024

@andrewtelnov Please see here (apologies I didn't explain this thoroughly)

@SeeJayy
Copy link
Author

SeeJayy commented Feb 1, 2024

@andrewtelnov Could also be related to #7774

@andrewtelnov andrewtelnov self-assigned this Feb 1, 2024
@andrewtelnov andrewtelnov added bug user issue An issue or bug reported by users and removed question labels Feb 1, 2024
@andrewtelnov
Copy link
Member

Here is the miminum configuration that produce the issue:

Survey.ComponentCollection.Instance.add({
    name: "importgoods",
    elementsJSON: [
        {
            "name": "isImport",
            "type": "boolean",
        },
        {
            "name": "importGoodsProducts",
            "type": "paneldynamic",
            "visibleIf": "{composite.isImport} = true",
            "minPanelCount": 1,
            "templateElements": [
                {
                    "name": "product",
                    "type": "text"
                }
            ]
        }
    ]
});

const json =  {
  "elements": [
    { name: "question1", type: "importgoods" }
  ]
};

We will take a look.

Thank you,
Andrew

@andrewtelnov andrewtelnov changed the title Dynamic Panel - Add new causes whole panel to disappear when inside composite question Dynamic Panel with visibleIf - Add new causes whole panel to disappear when inside composite question Feb 1, 2024
andrewtelnov added a commit that referenced this issue Feb 1, 2024
tsv2013 pushed a commit that referenced this issue Feb 2, 2024
@RomanTsukanov RomanTsukanov changed the title Dynamic Panel with visibleIf - Add new causes whole panel to disappear when inside composite question Dynamic Panel with visibleIf: Adding a new panel causes the whole question to disappear when inside a composite question Feb 6, 2024
@OlgaLarina OlgaLarina added this to the v1.9.129 milestone Mar 27, 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