surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.23k stars 819 forks source link

Dynamic Matrix: The `minRowCount` property overrides `rowCount` #8899

Closed JaneSjs closed 1 month ago

JaneSjs commented 1 month ago

T20129 - Matrixdynamic properties rowCount/minRowCount don't work properly together https://surveyjs.answerdesk.io/internal/ticket/details/T20129


A matrix is expected to display 2 rows corresponding to the number of rowCount. However, it shows only one row.

{
  "logoPosition": "right",
  "pages": [
    {
      "name": "page1",
      "elements": [
        {
          "type": "matrixdynamic",
          "name": "question1",
          "columns": [
            {
              "name": "Column 1"
            },
            {
              "name": "Column 2"
            },
            {
              "name": "Column 3"
            }
          ],
          "choices": [
            1,
            2,
            3,
            4,
            5
          ],
          "minRowCount": 1
        }
      ]
    }
  ]
}

image