template: fix validation for required selects
Since upgrading to Angular 1.6.1, selects with a default empty option no longer show a popup with an error on submit. This fix adds an empty option that is then removed with ng-if. Having the default option set to null or undefined seems to be the cause of the bug. The list of changes in 1.6 is here but could not find any obvious cause for this bug: https://docs.angularjs.org/guide/migration#migrating-from-1-5-to-1-6
Showing
Please
register
or
sign in
to comment