diff --git a/projects/zxing-scanner/src/lib/zxing-scanner.component.ts b/projects/zxing-scanner/src/lib/zxing-scanner.component.ts index b1b43d5..2f8d45a 100644 --- a/projects/zxing-scanner/src/lib/zxing-scanner.component.ts +++ b/projects/zxing-scanner/src/lib/zxing-scanner.component.ts @@ -343,6 +343,10 @@ export class ZXingScannerComponent implements OnInit, OnDestroy { @Input() set enable(enabled: boolean) { + if (this._enabled === Boolean(enabled)) { + return; + } + this._enabled = Boolean(enabled); if (!this._enabled) {