We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c627a5 commit 22fba37Copy full SHA for 22fba37
assets/controllers/pages/barcode_scan_controller.js
@@ -61,6 +61,11 @@ export default class extends Controller {
61
this._scanner.render(this.onScanSuccess.bind(this));
62
}
63
64
+ disconnect() {
65
+ this._scanner.pause();
66
+ this._scanner.clear();
67
+ }
68
+
69
onScanSuccess(decodedText, decodedResult) {
70
//Put our decoded Text into the input box
71
document.getElementById('scan_dialog_input').value = decodedText;
0 commit comments