Angular does not work by mobile browser

Asked

Viewed 162 times

0

I am trying to save a form by mobile browser (Chrome and Opera), however, after filling the data and ask to save nothing happens, the form is not submitted, the request does not arrive even in the backend and I have no validation in the form.
The Cancel button works, redirects me to another "/list" screen, where I should display a table with the entries made, but the table is displayed without any information.

By desktop everything is working, both the registration and listing of those who were registered.

Can anyone tell me why this happens?
I’m using Angular 7.1.4

For the form Ubmit I have tried to use button and input, but neither worked, nor putting (click)="onsubmit()" right on the button worked.

Template.

<form [formGroup]="formPessoa" 
      (ngSubmit)="onSubmit()" >

 <div class="form-group">
<label for="nome">Nome</label>
<input type="text" class="form-control" 
      name="name" id="nome" 
formControlName="nome">
</div>

<div class="form-group">
<label for="nome">CPF</label>
<input type="number" class="form-control"name="cpf" id="cpf" formControlName="cpf">
</div>

 .
 . restante do formulário
 .

<button type="submit" class="btn btn-primary 
mt-4" value="Salvar"  >Salvar</button>
  <button type="button" class="btn btn- 
 secondary mt-4 ml-2" 
(click)="goToList()">Cancelar</button>
     <button type="submit">Submit</button>

</form>
  • tried to emulate mobile by computer browser? this is quite strange, it should work normal.

  • Emerson, I used a simulator by computer and it worked normal... but by cell phone it still does not work, nor by the native browser, I have tested in two cell phones and an Ipad

  • what I can do is try to play here and test on my mobile and try to find the error/solution

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.