Skip to content

Commit 5aab81a

Browse files
committed
[ZEPPELIN-6294] fix: add detectChanges for addParagraph triggered by shortcut
1 parent 77ead6a commit 5aab81a

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
@@ -163,6 +163,7 @@ export class NotebookComponent extends MessageListenersManager implements OnInit
163163
}
164164
const definedNote = this.note;
165165
definedNote.paragraphs.splice(data.index, 0, data.paragraph);
166+
this.cdr.detectChanges();
166167
const paragraphIndex = definedNote.paragraphs.findIndex(p => p.id === data.paragraph.id);
167168

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

0 commit comments

Comments
 (0)