How to programmatically close a dialog in a Jira Forge "jira:issueAction" addon type

@Andrew_Golokha @GabrielDias @vpetrychuk Could you check. Is it expected behavior for the native UI?

I asked you because you were leading (Can't close modal, fails with error message "this resource's view is not closable." - #9 by vpetrychuk)