This is a migrated thread and some comments may be shown as answers.

Inputs resetting to pristine ($dirty=false) in Kendo-Angular app

1 Answer 248 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 21 Aug 2014, 09:11 PM
Working on an app using Kendo-Angular libraries to build a form. The form consists of a dynamic section, with inputs displayed within ng-repeat, and added with an "add" button. 

Sample of such a form available here - http://plnkr.co/edit/MB66LLuTBKO0A2pZuXaN?p=preview

The issue is that when adding a record (i.e. Phone record), the $dirty flag of the inputs is getting reset to false, even if the update to the input value is still present. 

But this is only happening when the ng-repeat block includes a kendo widget. So, in the sample, switching from a kendo-combo-box to ordinary select input results in correct behavior.

In my actual project, I noticed this issue when my validation messages started disappearing (because they were tied to the $dirty flag).

Thank you.

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 25 Aug 2014, 12:43 PM
Hello Brian

A fix has been pushed and will be available in the next internal build.

(duplicated by ticket 852630)

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Brian
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or