Fix: Dropdown Focus
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 6m4s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 6m4s
				
			This commit is contained in:
		| @@ -6,10 +6,10 @@ import { | ||||
| import type { ControlDevolucionesDto } from '../../../models/dtos/Distribucion/ControlDevolucionesDto'; | ||||
| import type { CreateControlDevolucionesDto } from '../../../models/dtos/Distribucion/CreateControlDevolucionesDto'; | ||||
| import type { UpdateControlDevolucionesDto } from '../../../models/dtos/Distribucion/UpdateControlDevolucionesDto'; | ||||
| import type { EmpresaDto } from '../../../models/dtos/Distribucion/EmpresaDto'; // DTO de Empresa | ||||
| import empresaService from '../../../services//Distribucion/empresaService'; // Servicio de Empresa | ||||
| import type { EmpresaDto } from '../../../models/dtos/Distribucion/EmpresaDto'; | ||||
| import empresaService from '../../../services//Distribucion/empresaService'; | ||||
|  | ||||
| const modalStyle = { /* ... (mismo estilo) ... */ | ||||
| const modalStyle = { | ||||
|     position: 'absolute' as 'absolute', | ||||
|     top: '50%', | ||||
|     left: '50%', | ||||
| @@ -149,7 +149,7 @@ const ControlDevolucionesFormModal: React.FC<ControlDevolucionesFormModalProps> | ||||
|                     <InputLabel id="empresa-cd-select-label">Empresa</InputLabel> | ||||
|                     <Select labelId="empresa-cd-select-label" label="Empresa" value={idEmpresa} | ||||
|                         onChange={(e) => {setIdEmpresa(e.target.value as number); handleInputChange('idEmpresa');}} | ||||
|                         disabled={loading || loadingEmpresas || isEditing} | ||||
|                         disabled={loading || loadingEmpresas || isEditing} autoFocus={!isEditing} | ||||
|                     > | ||||
|                         <MenuItem value="" disabled><em>Seleccione</em></MenuItem> | ||||
|                         {empresas.map((e) => (<MenuItem key={e.idEmpresa} value={e.idEmpresa}>{e.nombre}</MenuItem>))} | ||||
| @@ -160,7 +160,7 @@ const ControlDevolucionesFormModal: React.FC<ControlDevolucionesFormModalProps> | ||||
|                 <TextField label="Fecha" type="date" value={fecha} required | ||||
|                     onChange={(e) => {setFecha(e.target.value); handleInputChange('fecha');}} | ||||
|                     margin="dense" fullWidth error={!!localErrors.fecha} helperText={localErrors.fecha || ''} | ||||
|                     disabled={loading || isEditing} InputLabelProps={{ shrink: true }} autoFocus={!isEditing} | ||||
|                     disabled={loading || isEditing} InputLabelProps={{ shrink: true }} | ||||
|                 /> | ||||
|                 <TextField label="Entrada (Por Remito)" type="number" value={entrada} required | ||||
|                     onChange={(e) => {setEntrada(e.target.value); handleInputChange('entrada');}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user