fix(modal): Fix focus when the dialog is close or cancelled