Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过服务创建的对话框,如果未关闭,每按一次空格都会弹出一个新的对话框。 #2124

Closed
ghost opened this issue Sep 11, 2018 · 1 comment
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Sep 11, 2018

Version

1.5.0

Environment

Chrome 版本 69.0.3497.81(正式版本) (64 位)

Reproduction link

https://ng-zorro-antd-start-7wftxv.stackblitz.io

Steps to reproduce

点击按钮创建一个对话框,在未进行任何操作的情况下,按空格键。

What is expected?

无任何事情发生。

What is actually happening?

创建了一个新的对话框。

Other?

null

@wzhudev
Copy link
Member

wzhudev commented Sep 12, 2018

@The-Lost 你可以先临时加一个变量保留 modal 对象的引用, 调用打开 modal 方法的时候检查这个变量是否为 falsy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants