我显示了一个对话框,其中包含一个关闭按钮和一个打开新对话框的按钮。关闭按钮工作正常,除非我在当前对话框上打开了第二个对话框。我想我的对话框失去了焦点,无法关闭。
public void anotherOne(View v){
openDialog2(); //This opens another dialog on top of the current one
}
public void closeDialog(View v){
dialog.cancel(); //This works fine unless anotherOne() has be
我使用primeng ConfirmationService来显示确认对话框。确认第一个对话框后,我希望根据条件显示另一个对话框。但这是行不通的。这是我的密码。有人能帮我解决这个问题吗?
this.confirmDialog.confirm({
header: 'Begin',
message: 'Are you sure you would like to start?',
acceptLabel: 'Yes',
rejectLabel: 'No',
accept: () => {