Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 80b29f0

Browse files
authored
Add explanation comment
1 parent 11d2b93 commit 80b29f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ng/directive/ngOptions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ var ngOptionsDirective = ['$compile', '$document', '$parse', function($compile,
452452
var removeEmptyOption = function() {
453453
if (!providedEmptyOption) {
454454
emptyOption.remove();
455+
// Empty nodes with non-rendered ngIf can be comment nodes
455456
} else if (emptyOption[0].nodeType === NODE_TYPE_ELEMENT) {
456457
emptyOption.removeAttr('selected');
457458
}

0 commit comments

Comments
 (0)