Skip to content

Commit

Permalink
- fixed input not clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyusung4698 committed Nov 8, 2020
1 parent 580fef4 commit 45f2104
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export class HeaderComponent implements OnInit {
}

public onDrag(event: MouseEvent, draggable: boolean): void {
if (!draggable || this.pinned) {
const target = event.target as HTMLInputElement;
if (!draggable || this.pinned || target?.tagName === 'INPUT') {
return;
}
event.preventDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export class ItemFrameValueGroupComponent implements AfterViewInit {
}

public onMouseDown(event: MouseEvent): void {
const target = event.target as HTMLInputElement;
if (target?.tagName === 'INPUT') {
return;
}
event.preventDefault();
event.stopImmediatePropagation();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export class ItemFrameValueComponent implements OnInit {
}

public onMouseDown(event: MouseEvent): void {
const target = event.target as HTMLInputElement;
if (target?.tagName === 'INPUT') {
return;
}
event.preventDefault();
event.stopImmediatePropagation();
}
Expand Down

0 comments on commit 45f2104

Please sign in to comment.