[BUG] Formio dialog and flatpickr are not being destroyed after leaving the builder
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 40/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- angular, typescript
- 领域
- frontend
调研方向
从承载 Formio builder 的 Angular 组件开始,跟踪组件在登录重定向后销毁时的 teardown。检查 builder 模态框和 flatpickr 实例的创建与移除方式,然后在 Chrome 中复现重定向流程。完成标准是:离开 builder 后, 外部不再残留任何 Formio 模态框或 flatpickr HTML。
由索引模型根据 Issue 内容生成。
描述
Environment
- Hosting type
- [] Form.io
- Local deployment
- Version:
- Formio.js version: 5.2.0
- Frontend framework: Angular 18
- Browser: Chrome
Steps to Reproduce
- Enter in formio builder
- Open a modal (ex: editing a component)
- Leaving the form without closing the modal (In our case, is a login redirection that happens when user becomes inactive)
- Once redirected the modal html keeps displaying while the component shoul've been destroyed.
Expected behavior
All rendered html elements including flatpickr and formio modals should be destroyed once the angular component is destroyed.
Observed behavior
We've observed through an html inspection that both flatpickr and formio-dialog are still present in the html outside the main angular
Example
Modal after redirection (should be destroyed):
Html:
- 主要语言
- TypeScript
- 星标
- 706
- 派生
- 493
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
formio/angular 的其他 Issue
-
question
难度 3/5 1-2 天 新手友好度 55/100
-
[BUG] <form-builder> move icon is missing可能重新可做 @PrathameshHegde 于 99 天前认领,目前没有进行中的 PR。 未关闭bug
-
question
难度 2/5 1-3 小时 新手友好度 25/100
-
[BUG] "Left (Right-aligned)" label position causes misaligned error messages and descriptions可能重新可做 @Victoriya25 于 363 天前认领,目前没有进行中的 PR。 未关闭bug
-
question
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
area: batch
难度 2/5 1-3 小时 新手友好度 75/100
inabagumi/shinju-date#7294 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
streaming-video-technology-alliance/common-media-library#700 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
vercel-labs/ui#809 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 67/100
KrisCris/village-in-the-shade-guide#75 ·
维护者通常 1 天内回复
-
bot:ai-assisted component:platform-js status:untriaged
难度 1/5 1 小时以内 新手友好度 74/100
midnightntwrk/platform-js#38 ·