Skip to content

Commit 5eb7e1b

Browse files
committed
fixup! feat(cdk-experimental/radio): add radio demo to dev-app
1 parent fd0dd59 commit 5eb7e1b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cdk-experimental/radio/radio.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
ElementRef,
1616
inject,
1717
input,
18+
isDevMode,
1819
linkedSignal,
1920
model,
2021
signal,
@@ -138,9 +139,11 @@ export class CdkRadioGroup<V> {
138139

139140
constructor() {
140141
afterRenderEffect(() => {
141-
const violations = this.pattern.validate();
142-
for (const violation of violations) {
143-
console.error(violation);
142+
if (isDevMode()) {
143+
const violations = this.pattern.validate();
144+
for (const violation of violations) {
145+
console.error(violation);
146+
}
144147
}
145148
});
146149

0 commit comments

Comments
 (0)