feat: Make video elements visible for barcode scanning in various templates

This commit is contained in:
2026-06-01 12:10:31 +02:00
parent 5139a50a43
commit 112d9b6aa0
4 changed files with 8 additions and 4 deletions
+4
View File
@@ -98,6 +98,9 @@ class HybridScanner {
this.state.stream = stream;
this.state.videoElement.srcObject = stream;
// Make video element visible (ensure it's not hidden by display: none)
this.state.videoElement.style.display = 'block';
// Initialize ZXing reader
const hints = new Map();
@@ -134,6 +137,7 @@ class HybridScanner {
if (this.state.videoElement) {
this.state.videoElement.srcObject = null;
this.state.videoElement.style.display = 'none';
}
this.removeKeyboardInput();