This gif recorded on the latest commit of main branch.
Firstly i demonstrate closing with CloseOnClickAway, in secondly i demonstrate closing via button, that executes CloseDialogCommand.
Please provide relevant repro info and then feel free to reopen issue.