Remove editor from DOM
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 48
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
When I write something in the editor and then remove it with ngIf statement:
TypeError: Cannot read property 'current' of undefined undefined TypeError: Cannot read property 'current' of undefined
at t.calcPathImd (jodit.min.js:10)
at jodit.min.js:10
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
at Object.onInvokeTask (core.js:3815)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188)
at push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask (zone.js:496)
at ZoneTask.invoke (zone.js:485)
at timer (zone.js:2054)
Steps to reproduce:
- Place multiple editors like:
<jodit-editor [formControl]="control1" *ngIf="control1enabled"></jodit-editor> <jodit-editor [formControl]="control2" *ngIf="control2enabled"></jodit-editor> <jodit-editor [formControl]="control3" *ngIf="control3enabled"></jodit-editor> - Write something to editor with control2
- Switch control2enabled to
control2enabled = false
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce the issue with the three elements and control2enabled set to false after editing control2. Start from the reported jodit.min.js calcPathImd stack and trace what runs after the editor is removed; done means removing the editor no longer produces the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100