powmedia / backbone-forms

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

Should fields like Select / Checkboxes remember the value if options re-rendered? #505

Open glenpike opened 8 years ago

glenpike commented 8 years ago

In the Select editor, renderOptions will call setValue with this.value after rendering children.

However, if the chosen value in a selection has changed, this only triggers a change event, it doesn't update the "internal" this.value variable.

When renderOptions is called, we may want to reselect the previous value. How should we handle this?