Skip to content

Commit cecec31

Browse files
committed
[ZEPPELIN-6294] fix: add detectChanges for addParagraph triggered by shortcut
1 parent 648c6ef commit cecec31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zeppelin-web-angular/src/app/pages/workspace/notebook/notebook.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export class NotebookComponent extends MessageListenersManager implements OnInit
156156
}
157157
const definedNote = this.note;
158158
definedNote.paragraphs.splice(data.index, 0, data.paragraph);
159+
this.cdr.detectChanges();
159160
const paragraphIndex = definedNote.paragraphs.findIndex(p => p.id === data.paragraph.id);
160161

161162
definedNote.paragraphs[paragraphIndex].focus = true;

0 commit comments

Comments
 (0)