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

Commit a9aabe1

Browse files
committed
amend(select): remove dead setUntouched code
1 parent 2413be4 commit a9aabe1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/select/select.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -442,17 +442,15 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
442442
preserveScope: true,
443443
skipCompile: true,
444444
element: selectContainer,
445+
preserveElement: true,
445446
target: element[0],
446447
hasBackdrop: true,
448+
parent: element,
447449
loadingAsync: attr.mdOnOpen ? scope.$eval(attr.mdOnOpen) || true : false
448450
}).finally(function() {
449451
selectScope.isOpen = false;
450452
ngModelCtrl.$setTouched();
451453
});
452-
453-
function setUntouched() {
454-
ngModelCtrl.$setUntouched();
455-
}
456454
}
457455
};
458456
}

0 commit comments

Comments
 (0)