You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is in knockout. question.koValue() returns an empty array and changing question.koValue() does't seems to change anything. The input continiues to show empty color value.
JaneSjs
changed the title
A Text field receives an unexpected value after changing the input type
[Knockout] A Text field receives an unexpected value after changing the input type
May 6, 2024
This is the default behavior for an input element. If you change the input type from color to text, the "#000000" color value is a valid string and it will be preserved as an input element value. It seems like framevorks like react, angular and others update value from a virtual dom, but knockoutjs doesn't do it.
We plan to get rid of survey-knockout in V2. On the other hand, this issue doesn't seem critical. That's why we won't fix it right now. I marked it as a known issue. We will keep it open.
T18022 - Value not reset on change from text->color->text
https://surveyjs.answerdesk.io/internal/ticket/details/T18022
Please follow these steps to reproduce the issue: Change the input type from Text to Color and then back to Text. The
#000000
value appears:2024-05-03_20-09-05.mp4
The text was updated successfully, but these errors were encountered: