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

Commit dda25a6

Browse files
committed
fix(checkbox): labels with links throw exception in IE11
1 parent b1c7154 commit dda25a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/checkbox/checkbox.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ function MdCheckboxDirective(inputDirective, $mdAria, $mdConstant, $mdTheming, $
111111
attr.$set('aria-labelledby', labelId);
112112

113113
var label = element.children()[1];
114-
label.remove();
114+
// Use jQLite here since ChildNode.remove() is not supported in IE11.
115+
angular.element(label).remove();
115116
label.removeAttribute('ng-transclude');
116117
label.className = 'md-checkbox-link-label';
117118
label.setAttribute('id', labelId);

0 commit comments

Comments
 (0)