diff --git a/src/code-snippet/code-snippet.component.ts b/src/code-snippet/code-snippet.component.ts index 75a8be48b0..f82a59866d 100644 --- a/src/code-snippet/code-snippet.component.ts +++ b/src/code-snippet/code-snippet.component.ts @@ -4,7 +4,8 @@ import { HostBinding, ViewChild, AfterViewInit, - OnInit + OnInit, + ChangeDetectionStrategy } from "@angular/core"; import { I18n } from "carbon-components-angular/i18n"; @@ -66,9 +67,7 @@ export enum SnippetType { } } @if (!skeleton) { -
-						
-					
+
} @if (hasLeft) { @@ -135,7 +134,8 @@ export enum SnippetType { - ` + `, + changeDetection: ChangeDetectionStrategy.OnPush }) export class CodeSnippet extends BaseIconButton implements OnInit, AfterViewInit { @HostBinding("class.cds--snippet") get snippetClass() {