feat(appointment): add Enter key functionality for mobile search in appointment modal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user