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

オープン
#1,151 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
40/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
angular, typescript
領域
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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

formio/angular のほかの issue

formio/angular の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。