I have this button in Angular, that even if I have it disconnected, I open the file explorer, I usually do it is
<miBoton (click)="estaDesamblado?'':miEventoClick()" >
Some correct way to solve it
#abrirArchivo{
display: none;
}
label{
padding: 5px;
cursor: poiter;
background-color: #333;
color: #fff;
}
label[disabled]{
background-color: #ddd;
}
<label for="abrirArchivo" disabled>Abrir</label>
<input id="abrirArchivo" type="file">