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

[Knockout] Incorrect CSS for matrix rows with errors #8193

Closed
SamMousa opened this issue Apr 26, 2024 · 6 comments
Closed

[Knockout] Incorrect CSS for matrix rows with errors #8193

SamMousa opened this issue Apr 26, 2024 · 6 comments
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@SamMousa
Copy link
Contributor

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

Bug

What is the current behavior?

The video below shows a required matrix question, notice how the last row has a weird pink color that never disappears even after the error message disappears.

screen.mp4

What is the expected behavior?

The pink glow should disappear when the message disappears.

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

Trigger a validation error on a matrix question, then fill in the question correctly and notice the pink background color.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://surveyjs.io/create-free-survey

Test code

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "matrix",
     "name": "question1",
     "columns": [
      "Column 1",
      "Column 2"
     ],
     "rows": [
      "Row 1",
      "Row 2",
      "Row 3",
      "Row 4"
     ],
     "isAllRowRequired": true
    }
   ]
  }
 ],
 "widthMode": "static",
 "width": "650px"
}

Specify your

  • browser: N/A
  • browser version: N/A
  • surveyjs platform (angular or react or jquery or knockout or vue): don't know
  • surveyjs version: latest?
@nitin-pandita
Copy link

Hey @SamMousa I would like to give it a try

@SamMousa
Copy link
Contributor Author

Try what? Fixing this issue? Feel free to give it a shot.

Note I'm not a maintainer of this repository so I don't have any power; they might not even classify it as a bug.

@andrewtelnov andrewtelnov added bug user issue An issue or bug reported by users labels Apr 26, 2024
@andrewtelnov andrewtelnov self-assigned this Apr 27, 2024
@andrewtelnov andrewtelnov changed the title Incorrect CSS for matrix rows with error Knockout: Incorrect CSS for matrix rows with error Apr 28, 2024
@RomanTsukanov RomanTsukanov changed the title Knockout: Incorrect CSS for matrix rows with error [Knockout] Incorrect CSS for matrix rows with errors Apr 30, 2024
@OlgaLarina OlgaLarina added this to the v1.10.2 milestone May 2, 2024
@SamMousa
Copy link
Contributor Author

SamMousa commented May 7, 2024

This problem is not fully fixed:
image

In cases where there's a survey complete trigger it still occurs.

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "radiogroup",
     "name": "question2",
     "choices": [
      "Item 1",
      "Item 2",
      "Item 3"
     ]
    },
    {
     "type": "matrix",
     "name": "question1",
     "columns": [
      "Column 1",
      "Column 2"
     ],
     "rows": [
      "Row 1",
      "Row 2",
      "Row 3",
      "Row 4"
     ],
     "isAllRowRequired": true
    }
   ]
  }
 ],
 "triggers": [
  {
   "type": "complete",
   "expression": "{question2} = 'Item 1'"
  }
 ],
 "widthMode": "static",
 "width": "650px"
}

Tested on https://surveyjs.io/create-free-survey as well as locally.

@SamMousa
Copy link
Contributor Author

SamMousa commented May 8, 2024

Please reopen!

@andrewtelnov
Copy link
Member

@SamMousa I have created another issue since they are not related. We have modified the way we works with errors in questions and unfortunately, we did not have enough tests to see this issue.

Thank you,
Andrew

@andrewtelnov
Copy link
Member

andrewtelnov commented May 8, 2024

@SamMousa We did not update our website yet. Everything is working in the latest version:
Knockout and react.

I have added one more unit test into the master

Thank you,
Andrew

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

No branches or pull requests

4 participants