feat(appointment): add Enter key functionality for mobile search in appointment modal

This commit is contained in:
hamed
2026-07-15 18:29:59 +03:30
parent 5d5089244b
commit 0dc1ab949a
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -192,6 +192,7 @@ export function NewAppointmentModal({
maxLength={11}
value={mobile}
onChange={e => onMobileChange(e.target.value)}
onKeyDown={e => { if (e.key === 'Enter' && mobileValid && !search.isPending) search.mutate(); }}
placeholder="مثال: 09123456789"
style={{ ...inputSx, direction: 'ltr' }}
autoFocus