We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dialog内添加了iframe,iframe添加了通信事件,每次重新打开dialog后,iframe绑定的通信事件就会重复绑定,导致通信事件被多次响应
可以的话,尽可能提供截图或视频来补充描述你的问题...
你是如何使用 amis 的? sdk
amis 版本是什么?请先在最新 beta 版本测试问题是否存在
粘贴有问题的完整 amis schema 代码:
amis schema
{ "type": "page", "data": { "iframeSrc": "https://github.com/baidu/amis" }, "body": [ { "type": "button", "actionType": "dialog", "dialog": { "title":"adf", "body":[ { "type": "iframe", "src": "http://www.xxx.com", "onEvent": { "detail": { "actions": [ { "actionType": "crud", "componentId": "form01", "data": { "iframeId": "${iframeId}" // 刷新请求参数为`"iframe 传给 amis 的 id 是:${iframeId}"`这段模板,即111 } } ] } } } ] } } ]
The text was updated successfully, but these errors were encountered:
fix: 修复 iframe 事件响应重复的问题 Close: baidu#10196
c2d1a0f
感谢反馈已定位到问题
Sorry, something went wrong.
fix: 修复 iframe 事件响应重复的问题 Close: #10196 (#10266)
877856f
2betop
Successfully merging a pull request may close this issue.
描述问题:
dialog内添加了iframe,iframe添加了通信事件,每次重新打开dialog后,iframe绑定的通信事件就会重复绑定,导致通信事件被多次响应
截图或视频:
可以的话,尽可能提供截图或视频来补充描述你的问题...
如何复现(请务必完整填写下面内容):
你是如何使用 amis 的?
sdk
amis 版本是什么?请先在最新 beta 版本测试问题是否存在
粘贴有问题的完整
amis schema
代码:请简单描述一下复现的操作步骤...
The text was updated successfully, but these errors were encountered: