Closed MzoroHaHa closed 3 years ago
[https://wu31fx--run.stackblitz.iO?stackBitz can't be reproduced on https://wu311fx--run.stackBlitz.io?stackBitz can not be reproduced)
`
<nz-modal
[(nzvisible)] = "s"
nztitle = "the first modal"
[NZCONTENT] = "'ss'"
[NZKEYBOARD] = "True"
(nzonok) = "s = false"
[nzmaskclosable] = "True"
</ nz-modal>
` "dependencies": { "@ Angular / Animation": "~ 11.0.5", "@ Angular / Common": "~ 11.0.5", "@ Angular / Compiler": "~ 11.0.5", "@ Angular / Core": "~ 11.0.5", "@ Angular / Forms": "~ 11.0.5", "@ Angular / Platform-Browser": "~ 11.0.5", "@ Angular / Platform-Browser-Dynamic": "~ 11.0.5", "@ Angular / Router": "~ 11.0.5", "Ng-Zorro-ANTD": "^ 11.1.0", "RXJS": "~ 6.6.0", "TSLIB": "^ 2.0.0", "zone.js": "~ 0.10.2" } "devdependencies": { "@ angular-devkit / build-angular": "~ 0.1100.5", "@ Angular / CLI": "~ 11.0.5", "@ Angular / Compiler-CLI": "~ 11.0.5", "@ Types / Jasmine": "~ 3.6.0", "@ Types / Node": "^ 12.11.1", "Codelyzer": "^ 6.0.0", "Jasmine-Core": "~ 3.6.0", "Jasmine-Spec-Reporter": "~ 5.0.0", "Karma": "~ 5.1.0", "Karma-Chrome-Launcher": "~ 3.1.0", "Karma-coverage": "~ 2.0.3", "Karma-Jasmine": "~ 4.0.0", "Karma-jasmine-html-reporter": "^ 1.5.0", "Protractor": "~ 7.0.0", "TS-NODE": "~ 8.3.0", "TSLINT": "~ 6.1.0", "TypeScript": "~ 4.0.2" }
`
Respond to the ESC, the point is closed, click the button to close the button
Question Unless your code is implemented Another service mode opened Modal is normal
ENVIRONMENT | INFO |
---|---|
Ng-Zorro-ANTD | 11.1.0 |
Browser | Chrome version 88.0.4324.150 (official version) (64-bit) |
happy New Year
stackblitz与本地环境100%相同,在stackblitz上无法重现的代码,在我们电脑上同样无法重现
这个道理我懂,我的电脑环境也没有不同,但是在我的本地环境确实发生了这个现象,如果有时间烦请尝试一次,没有出现就关闭吧。我觉得也挺奇怪的。
Reproduction link
https://wu31fx--run.stackblitz.io?stackbitz上不能重现的
Steps to reproduce
s 变量在组件中已经添加了,且不是private
What is expected?
响应esc ,点蒙层关闭,点关闭按钮关闭
What is actually happening?
如题 除非自己代码实现 另 Service 方式打开的modal 是正常的
过年好