Skip to content

Commit

Permalink
add event.preventDefault() (#12564)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyzhang929 authored Sep 23, 2020
1 parent c26963e commit f8eb203
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f8eb203

Please sign in to comment.