powmedia / backbone-forms

Form framework for BackboneJS with nested forms, editable lists and validation
MIT License
2.17k stars 413 forks source link

bugfix: List editor behaves wrongly when calling setValue() more than once #372

Closed gerardobort closed 8 years ago

gerardobort commented 10 years ago

It was accumulating elements on each call, apart of that, the render() method also wasn't refreshing the DOM after the first call.

The way to reproduce is simple..

// given an exisiting and already rendered form...
form.setValue({ a_list_propery: ['a', 'b'] });

The form was not only accumulating elements, but also not refreshing the view.

I hope this could reach the trunk, Thanks,

bpardee commented 10 years ago

Same as #282

rjmackay commented 10 years ago

Just had the same issue described here. Could this get merged?

alemangui commented 9 years ago

+1

glenpike commented 8 years ago

May have bearing on #517