Added focus to production order and qr input in production quantity page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Laravel Pint / pint (pull_request) Successful in 3m53s
Laravel Larastan / larastan (pull_request) Failing after 4m17s

This commit is contained in:
dhanabalan
2026-03-05 15:02:33 +05:30
parent 1b8cbb6a40
commit 2a18cd5f63
2 changed files with 14 additions and 6 deletions

View File

@@ -87,6 +87,15 @@
}
});
window.addEventListener('focus-qr-input', () => {
const input = document.getElementById('qr-scan-input');
if (input) {
input.focus();
input.select();
}
});
document.addEventListener('DOMContentLoaded', function () {
const scanInput = document.getElementById('qr-scan-input');
if (!scanInput) return;
@@ -97,10 +106,10 @@
const value = scanInput.value.trim();
if (value !== '') {
// if (value != '') {
Livewire.dispatch('handleQrScan', { value: value });
scanInput.value = '';
}
// }
}
});