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 - A row gets an invalid value after being reordered #8568

Closed
JaneSjs opened this issue Jul 16, 2024 · 1 comment · Fixed by #8582
Closed

Dynamic Matrix - A row gets an invalid value after being reordered #8568

JaneSjs opened this issue Jul 16, 2024 · 1 comment · Fixed by #8582
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jul 16, 2024

T19009 - Drag-and-Drop Row Functionality Not Working Properly with Conditional Visibility (visibleIf) in MatrixDynamic Question
https://surveyjs.answerdesk.io/internal/ticket/details/T19009


View Demo

2024-07-16_12-40-28.mp4
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jul 16, 2024
@andrewtelnov
Copy link
Member

@OlgaLarina The issue is probably related to the dropdown react rendering.
I have tried it with the following JSON that works correctly:

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "matrixdynamic",
     "name": "matrix",
     "columns": [
      {
       "name": "col1",
       "cellType": "radiogroup",
       "choices": [
        "a",
        "b",
        "c"
       ]
      },
      {
       "name": "col2",
       "cellType": "text",
       "visibleIf": "{row.col1}='a'"
      }
     ],
     "allowRowsDragAndDrop": true
    }
   ]
  }
 ]
}

However, the following JSON works incorrectly:

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "matrixdynamic",
     "name": "matrix",
     "columns": [
      {
       "name": "col1",
       "cellType": "dropdown",
       "choices": [
        "a",
        "b",
        "c"
       ]
      },
      {
       "name": "col2",
       "cellType": "text",
       "visibleIf": "{row.col1}='a'"
      }
     ],
     "allowRowsDragAndDrop": true
    }
   ]
  }
 ]
}

OlgaLarina pushed a commit that referenced this issue Jul 19, 2024
OlgaLarina pushed a commit that referenced this issue Jul 19, 2024
OlgaLarina pushed a commit that referenced this issue Jul 19, 2024
OlgaLarina pushed a commit that referenced this issue Jul 22, 2024
@OlgaLarina OlgaLarina added this to the v1.11.8 milestone Jul 23, 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