Correctly set focus on new Notebook cells after clicking on inline buttons. (#6708)

This commit is contained in:
Cory Rivera
2019-08-13 14:14:18 -07:00
committed by GitHub
parent e9c234a0ae
commit 60bf331f19
2 changed files with 8 additions and 5 deletions

View File

@@ -200,7 +200,10 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe
}
// Add cell based on cell type
public addCell(cellType: CellType, index?: number) {
public addCell(cellType: CellType, index?: number, event?: Event) {
if (event) {
event.stopPropagation();
}
this._model.addCell(cellType, index);
}