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 Matrix: Setting 0 as a default value for the rowCount property doesn't work as expected #8258

Closed
andrewtelnov opened this issue May 9, 2024 · 0 comments · Fixed by #8259
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@andrewtelnov
Copy link
Member

The following code doesn't work correctly:

  Serializer.findProperty("matrixdynamic", "rowCount").defaultValue = 0;
  const survey = new SurveyModel({
    elements: [
      {
        type: "matrixdynamic",
        name: "matrix",
        columns: [{ name: "col1" }]
      }
    ]
  });
  survey.data = { matrix: [{ col1: 1 }] };
  //matrix has empty visible rows
@andrewtelnov andrewtelnov added bug user issue An issue or bug reported by users labels May 9, 2024
@andrewtelnov andrewtelnov self-assigned this May 9, 2024
andrewtelnov added a commit that referenced this issue May 9, 2024
tsv2013 pushed a commit that referenced this issue May 13, 2024
@RomanTsukanov RomanTsukanov changed the title Setting 0 as default value for matrix dynamic rowCount property doesn't work as expected Dynamic Matrix: Setting 0 as a default value for the rowCount property doesn't work as expected May 14, 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.

1 participant