[BUG] - Content Component as Angular element - produces the error - properties of undefined (reading 'data-ck-expando')
@jeriah-formio is already working on this.
Since Jul 10, 2024.
Assessment
This issue has not been assessed yet.
Description
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
- Dominant language
- TypeScript
- Stars
- 706
- Forks
- 493
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from formio/angular
-
question
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
[BUG] <form-builder> move icon is missingMay be free again @PrathameshHegde claimed this 101 days ago, and no pull request is open. Openbug
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
-
[BUG] "Left (Right-aligned)" label position causes misaligned error messages and descriptionsMay be free again @Victoriya25 claimed this 365 days ago, and no pull request is open. Openbug
-
question
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
`@angular/[email protected]` depends on vulnerable Vite 7.3.7 - GHSA-p4f5-76q4-ffq7 (Critical RCE)Openarea: @angular/build
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
angular/angular-cli#34764 ·
Maintainers usually reply within 1 day
-
status/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-gemini/gemini-cli#30384 · 1 comment ·
Maintainers usually reply within 1 day
-
P2
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug ready-for-human
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
LucasSantana-Dev/Lucky#3150 ·
Maintainers usually reply within 1 day
-
enhancement good first issue priority: low size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day