add event.preventDefault() (#12564)

This commit is contained in:
Lucy Zhang
2020-09-23 07:10:36 -07:00
committed by GitHub
parent c26963e848
commit f8eb203643

View File

@@ -70,6 +70,7 @@ export class PlaceholderCellComponent extends CellView implements OnInit, OnChan
public addCell(cellType: string, event?: Event): void {
if (event) {
event.preventDefault();
event.stopPropagation();
}
let type: CellType = <CellType>cellType;