powmedia / backbone-forms

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

Set select value if value is not null or undefined #504

Closed rkenzhebekov closed 6 years ago

rkenzhebekov commented 8 years ago

The jquery versions that are less than 1.10 doesn't allow to set non-existing select value. However, 1.10 and above versions allows to set null value or any non-existing value. I found it is confusing. This happens when Backbone model doesn't have default value.

I came to this problem after I upgrade jquery from 1.8 to 1.11

exussum12 commented 8 years ago

Hi @rkenzhebekov can you remove the .gitignore change, this should be in a global ignore file.

Also can you add a test which fails without this change ?

Thanks