diff --git a/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts b/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts index ea8af0f17e52..3b4fd64a59fe 100644 --- a/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts +++ b/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts @@ -78,6 +78,12 @@ export class TuiCheckboxLabeledComponent this.updateFocused(focused); } + stopReadonlyChanging(event: Event): void { + if (this.readOnly) { + event.preventDefault(); + } + } + /** @deprecated use 'value' setter */ onModelChange(value: boolean): void { this.value = value; diff --git a/projects/kit/components/checkbox-labeled/checkbox-labeled.template.html b/projects/kit/components/checkbox-labeled/checkbox-labeled.template.html index d80f5d612931..b4c5338a898c 100644 --- a/projects/kit/components/checkbox-labeled/checkbox-labeled.template.html +++ b/projects/kit/components/checkbox-labeled/checkbox-labeled.template.html @@ -1,4 +1,7 @@ -