fix: clear input field on scan error, version 0.18.3 - Fixes #1
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user