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

未关闭
#1,004 1 条评论 0 个 reaction 已指派 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 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

formio/angular 的其他 Issue

查看 formio/angular 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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