After some research I found that clicking any button in the dialog submits that form. By adding event.preventDefault()
as the first line in the required method/s, the button does what I want without submitting and closing.
Related Post: Here
Thanks for trying - G