Updating content externally or using DynamicFormControlComponent causes the cursor to jump to the start

Aperta
#425 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
angular, typescript
Ambito
frontend

Direzione di ricerca

Start with the linked CodeSandbox and reproduce the cursor jump while typing, using DynamicFormControlComponent, and during an external subscription update. Trace the Angular component's value-update handling; done means each update preserves the cursor position instead of moving it to the start, including on Angular 13 and latest.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Updating content externally or using DynamicFormControlComponent to update the value causes the cursor to jump to the start of the rich text editor. This issue also happens if there is another subscription firing to update the value somehow while typing

https://codesandbox.io/s/tinymce-angular-forked-sdwgoj

while typing it should not jump to the start, updating the value externally should not jump to the start, and after updating the value it should not jump to the start

Version 6.0.0 on Angular 13 and latest

Lingua principale
TypeScript
Stelle
346
Fork
94
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tinymce/tinymce-angular

Tutte le issue di tinymce/tinymce-angular

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.