[BUG] - Content Component as Angular element - produces the error - properties of undefined (reading 'data-ck-expando')
@jeriah-formio 已經在處理了。
開始於 2024年7月10日。
評估
這個 Issue 還沒有評估資料。
描述
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
- Create an angular element - with formio.
- Build the project to generate the javascript and css file and include it in a HTML file.
- 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 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 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 ·