[BUG] Formio dialog and flatpickr are not being destroyed after leaving the builder

未关闭
#1,151 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
40/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
frontend

调研方向

从承载 Formio builder 的 Angular 组件开始,跟踪组件在登录重定向后销毁时的 teardown。检查 builder 模态框和 flatpickr 实例的创建与移除方式,然后在 Chrome 中复现重定向流程。完成标准是:离开 builder 后, 外部不再残留任何 Formio 模态框或 flatpickr HTML。

由索引模型根据 Issue 内容生成。

描述

bug help wanted

Environment

  • Hosting type
    • [] Form.io
    • Local deployment
      • Version:
  • Formio.js version: 5.2.0
  • Frontend framework: Angular 18
  • Browser: Chrome

Steps to Reproduce

  1. Enter in formio builder
  2. Open a modal (ex: editing a component)
  3. Leaving the form without closing the modal (In our case, is a login redirection that happens when user becomes inactive)
  4. 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):

Image

Html:

Image
主要语言
TypeScript
星标
706
派生
493
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

formio/angular 的其他 Issue

查看 formio/angular 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。