We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0df4ff8 commit d077966Copy full SHA for d077966
test/ng/directive/ngOptionsSpec.js
@@ -2038,7 +2038,9 @@ describe('ngOptions', function() {
2038
expect(option.text()).toBe('is blank');
2039
});
2040
2041
- it('should support option without a value attribute', function() {
+ it('should be ignored when it has no value attribute', function() {
2042
+ // The option value is set to the textContent if there's no value attribute,
2043
+ // so in that case it doesn't count as a blank option
2044
createSingleSelect('<option>--select--</option>');
2045
scope.$apply(function() {
2046
scope.values = [{name: 'A'}, {name: 'B'}, {name: 'C'}];
0 commit comments