From c4865f6e0361497f4957f8fbf420799d2394d8ec Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Mon, 6 Apr 2026 11:30:07 +0530 Subject: [PATCH] fix: focus medicine name field after add/update in consult --- app/Views/billing/opd_prescription_basic.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Views/billing/opd_prescription_basic.php b/app/Views/billing/opd_prescription_basic.php index 3be848a..9e17fd4 100644 --- a/app/Views/billing/opd_prescription_basic.php +++ b/app/Views/billing/opd_prescription_basic.php @@ -5187,6 +5187,12 @@ $('#opd_session_id').val(data.opd_session_id || sid); clearMedicineForm(true); loadMedicineList(); + // Keep typing flow fast: move cursor back to medicine field. + setTimeout(function() { + var $medName = $('#med_name'); + $medName.trigger('focus'); + $medName.trigger('select'); + }, 20); } }); });