Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

ngx-ueditor2.1.2使用bootstrap模态框在关闭时报错 #43

Closed
zhangjinsong opened this issue Oct 9, 2018 · 9 comments
Closed

ngx-ueditor2.1.2使用bootstrap模态框在关闭时报错 #43

zhangjinsong opened this issue Oct 9, 2018 · 9 comments

Comments

@zhangjinsong
Copy link

image

这是第一次关闭时报的错误
image

这是第二次打开时报的错误
image

这是第二次关闭时报的错误
之后就不能再打开模态框了
再issue上无法找到相似的错误
这是我的package.json信息
image

@cipchk
Copy link
Owner

cipchk commented Oct 9, 2018

一个讨论很久的 angular/angular#14252 的问题。

你可以尝试在移除模态框之前先使用 *ngIf 注销后再关闭。

@zhangjinsong
Copy link
Author

尝试使用*ngIf还是不能解决这个问题

@zhangjinsong
Copy link
Author

不过可以多次点击了

@zhangjinsong
Copy link
Author

image

这是我添加的代码 再关闭之前she设置未false

@cipchk
Copy link
Owner

cipchk commented Oct 9, 2018

我尝试增加一个示例 https://cipchk.github.io/ngx-ueditor/#/modal ,但未发现你的问题。

@cipchk
Copy link
Owner

cipchk commented Oct 9, 2018

我增加一个 https://stackblitz.com/edit/ngx-ueditor 在线测试示例,你可以根据该示例进一步重现你的问题。

@cipchk cipchk removed the enhancement label Oct 9, 2018
@zhangjinsong
Copy link
Author

你是否能添加[(ngModel)]="fullSource"然后重试

@zhangjinsong
Copy link
Author

https://stackblitz.com/edit/ngx-ueditor-5l5t9d
这是我整理的在线测试示例,里面能重复我提出的错误。拜托了

@zhangjinsong
Copy link
Author

image
升级后报错

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

No branches or pull requests

2 participants