diff --git a/app.py b/app.py index 0c6476c..af4dcc3 100644 --- a/app.py +++ b/app.py @@ -28,7 +28,7 @@ app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(hours=1) # 1. Define the version -APP_VERSION = '0.18.2' +APP_VERSION = '0.18.3' # 2. Inject it into all templates automatically @app.context_processor diff --git a/modules/conssheets/templates/conssheets/scan_session.html b/modules/conssheets/templates/conssheets/scan_session.html index 5bddb70..46d1ccd 100644 --- a/modules/conssheets/templates/conssheets/scan_session.html +++ b/modules/conssheets/templates/conssheets/scan_session.html @@ -311,7 +311,10 @@ function processSmartScan(barcode, confirm = false) { feedbackArea.style.border = '1px solid #dc3545'; feedbackText.style.color = '#dc3545'; feedbackText.textContent = data.message; - if(smartInput) smartInput.focus(); + if(smartInput) { + smartInput.value = ''; + smartInput.focus(); + } } }) .catch(err => {