Closed dennexequiel closed 1 year ago
Hello @dennexequiel ,
Can you please provide a simple CodeSandbox(https://codesandbox.io/) implementation to reproduce this on live?
Thanks in advance, Furkan
Hello @dennexequiel , I am closing this ticket, you can please open it again when you are providing: https://github.com/notiflix/Notiflix/issues/66#issuecomment-1467957712 Thanks, Furkan
Describe the bug
I am using notiflix-block-aio package in my Angular v14 application to display a loading spinner during an API request. I have imported the Block class from the package and created showLoading and hideLoading methods in my component, which use the Block.hourglass and Block.remove methods to display and hide the spinner, respectively.
The showLoading method works as expected when called in the ngOnInit lifecycle hook. However, when I try to call the showLoading method on a button click to display the spinner, it does not work anymore.
To Reproduce
Expected behavior
The showLoading method should display the loading spinner when called on a button click by blocking a container, using Block from notiflix-block-aio package. The hideLoading method should hide the spinner.
Screenshots
First Load:
Button Click: I added a text indicator to confirm that the method is being called, but as you can see, the Block.hourglass is not showing.
Desktop (please complete the following information):
Additional context
I tried using setTimeout but no luck.