powmedia / backbone-forms

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

Disabling fields: use $.prop rather than $.attr #534

Open glenpike opened 8 years ago

glenpike commented 8 years ago

We should be using $selector.prop('disabled', true) and $selector.prop('disabled', false); to toggle disabling of fields. This might mean selects are disabled properly.

Check #412, #485, #497 behaves as expected.

By using "prop" we get things like Select2 behaving as expected for free.