I would like to know why in my view-model there is the metod “element.modal(‘hide’)”
so I can’t close my modal dialog manually.
With this question I have another. How can open a dialog and get a sort of validation when the user submit thant choose to close or not the dialog, in this case have the control of modal would be a good thing I think, neither href=“element” works because the dialog doesn’t disappear.
I also found this solution around… but I don’t know why my viewmodel doesn’t find “modal” command so I had to try another solution
Also… I used “ref=modalEL” but I must initialize (You didn’t do) as a property the variable otherwise I get an error “not found” …
For the moment I got a solution:
Rerefing the close button of the modal dialog, than trigger the event click in the viewmodel.