Survey-library: matrixdynamic does not remove empty rows when data is reset

Created on 9 Jan 2020  路  4Comments  路  Source: surveyjs/survey-library

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

bug

What is the current behavior?

matrixdynamic does not remove empty rows when data is reset programmatically

What is the expected behavior?

UI should reflect the data

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

https://plnkr.co/edit/4vpml3dTess7M0g1CrDy?p=preview

bug fixed

All 4 comments

@masciugo We will take a look.

Thank you,
Andrew

@masciugo The issue has been fixed.

Thank you,
Andrew

Thank you @andrewtelnov but it still does not work in the following scenario:

https://plnkr.co/edit/Ln7jjBX4tkoWar5TXA7E?p=preview

if you try to alter the survey content and then reset to the initial data by pressing the button, brand new matrixdynamic rows are still shown while all other values are correctly reset

@masciugo Added a new case into unit test and fix it.

Thank you,
Andrew

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aslanbeily picture aslanbeily  路  4Comments

dmitrykurmanov picture dmitrykurmanov  路  3Comments

nadialo picture nadialo  路  4Comments

halexiev-hedgeserv picture halexiev-hedgeserv  路  4Comments

testweird123 picture testweird123  路  4Comments