mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 06:49:36 +00:00
fix @d-buchmann bug: clear 'scan-augmented-result' field upon rescan of new barcode
This commit is contained in:
parent
2d55b90311
commit
a39eeb47be
1 changed files with 5 additions and 0 deletions
|
|
@ -117,6 +117,11 @@ export default class extends Controller {
|
||||||
this._lastDecodedText = normalized;
|
this._lastDecodedText = normalized;
|
||||||
this._submitting = true;
|
this._submitting = true;
|
||||||
|
|
||||||
|
// Clear previous augmented result immediately to avoid stale info
|
||||||
|
// lingering when the next scan is not augmented (or is transient/junk).
|
||||||
|
const el = document.getElementById("scan-augmented-result");
|
||||||
|
if (el) el.innerHTML = "";
|
||||||
|
|
||||||
//Put our decoded Text into the input box
|
//Put our decoded Text into the input box
|
||||||
const input = document.getElementById("scan_dialog_input");
|
const input = document.getElementById("scan_dialog_input");
|
||||||
if (input) input.value = decodedText;
|
if (input) input.value = decodedText;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue