I am trying to use Handsontable Wrapper for Angular in my web application. But during implementing first simplest steps I faced with unexpected behavior. I use context menu callback function for open angular material dialog component and pass the value from cell on which I called context menu opened dialog. But the passed value doesn’t render in opened window until some event fired (e.g. button click). However if the function that open modal window called outside Angular Wrapper the window rendered properly (e.g. “Works as expected” button from example below).
Here is an example of the described behavior: https://stackblitz.com/edit/angular-matewb
What is the right way to open dialog from context menu and put data there?
Thank you in advance.
our developer have checked the issue but unfortunately there aren’t any workaround that will allow us to show the data without a click. This has to be further investigated.
Hello @aleksandra_budnik
Thank you for your answer.
I think I’ve found a workaround for the issue. The key point is NgZone run() function. It has to be used as a wrapper for context Menu callback function.
Please look into this example. Hope it can be used as a temporary solution for other users.
Have a good day.
Hi @trotskovets,
Thanks for your solution,
I’m also facing this issue,
But the highlighted example is not loading, please provide the solution here.
Thanks.