Greetings!
When performing CRUD operations, the button used for these actions doesn't work as it should when pressed for the first time.
In this first example, when pressing the "Pesquisar" (Search) button, a spinner must appear and the GET request is made, and the results are shown in the grid.
But in the first time, the only thing that happens is the GET request, which is successful, but nothing is showed on the grid.
In the second time, another request is made, and the results are displayed on the grid.


The same happens on the "Create new product" screen, when pressing the "Save" button.
It should make the Post request, show a confirmation dialog and redirect the user to another page.
But when pressing it for the first time, the request is made, and nothing else happens.
In the second time,the Post request is made again and it happens as it should.



I'm sending the code and two videos of the behavior described above.
Am I doing somehting wrong?
I appreciate your help
Best regards,
Attachment:
Videos_and_Code_e01f724e.rar