fix: focus medicine name field after add/update in consult

This commit is contained in:
DevSoftTech Server 2026-04-06 11:30:07 +05:30
parent 1843460693
commit c4865f6e03

View File

@ -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);
}
});
});