[BUG] - Content Component as Angular element - produces the error - properties of undefined (reading 'data-ck-expando')

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

@jeriah-formio がすでに取り組んでいます。

2024年7月10日 から。

評価

この issue はまだ評価されていません。

説明

bug

Environment

Angular version - 15.2.0

  • Hosting type
    • [] Form.io
    • [X ] Local deployment
      • Version:
  • Formio.js version:
    "@formio/angular": "^5.5.0-rc.11",
    "@formio/js": "^5.0.0-rc.27",
  • Frontend framework:
  • Browser: Chrome
  • Browser version: latest

Steps to Reproduce

  1. Create an angular element - with formio.
  2. Build the project to generate the javascript and css file and include it in a HTML file.
  3. open HTML file and try to add content component to the form. Due to the ckeditor the following error occurs. (see video more details.)
sfs-form-designer-element.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'data-ck-expando')
    at dr (emittermixin.js:256:9)
    at Eu._getProxyEmitter (emittermixin.js:112:39)
    at Eu.stopListening (emittermixin.js:86:23)
    at Eu.destroy (view.js:492:8)
    at viewcollection.js:89:26
    at Array.map (<anonymous>)
    at dl.map (collection.js:334:22)
    at dl.destroy (viewcollection.js:89:8)
    at dl.detachFromDom (bodycollection.js:94:9)
    at Gl.destroy (editoruiview.js:52:13)

Note the above error occurs only if you export formio as an Angular Element. Regular angular projects work fine.

Expected behavior

Content component should work as expected.

Observed behavior

https://github.com/formio/angular/assets/17984781/b6a90082-5390-48b8-90fb-85224233d653

主要言語
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 を短くまとめたダイジェスト。