We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46e424d commit f8647c0Copy full SHA for f8647c0
projects/coreui/angular/src/lib/shared/layout/layout.directive.ts
@@ -169,6 +169,8 @@ export class HtmlAttributesDirective implements OnInit {
169
}
170
171
private setAttrib(key, value) {
172
- this.renderer.setAttribute(this.el.nativeElement, key, value );
+ value !== null ?
173
+ this.renderer.setAttribute(this.el.nativeElement, key, value ) :
174
+ this.renderer.removeAttribute(this.el.nativeElement, key);
175
176
0 commit comments