From 45f21048e403745ca2a3284c26e3eaec34260e54 Mon Sep 17 00:00:00 2001 From: Nicklas <38520678+Kyusung4698@users.noreply.github.com> Date: Sun, 8 Nov 2020 13:42:08 +0100 Subject: [PATCH] - fixed input not clickable --- .../shared/module/odk/component/header/header.component.ts | 3 ++- .../item-frame-value-group.component.ts | 4 ++++ .../item/frame/item-frame-value/item-frame-value.component.ts | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/app/shared/module/odk/component/header/header.component.ts b/src/app/shared/module/odk/component/header/header.component.ts index 84f3e20d..f8dd14c3 100644 --- a/src/app/shared/module/odk/component/header/header.component.ts +++ b/src/app/shared/module/odk/component/header/header.component.ts @@ -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(); diff --git a/src/app/shared/module/poe/item/frame/item-frame-value-group/item-frame-value-group.component.ts b/src/app/shared/module/poe/item/frame/item-frame-value-group/item-frame-value-group.component.ts index feca964a..22a9f216 100644 --- a/src/app/shared/module/poe/item/frame/item-frame-value-group/item-frame-value-group.component.ts +++ b/src/app/shared/module/poe/item/frame/item-frame-value-group/item-frame-value-group.component.ts @@ -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(); } diff --git a/src/app/shared/module/poe/item/frame/item-frame-value/item-frame-value.component.ts b/src/app/shared/module/poe/item/frame/item-frame-value/item-frame-value.component.ts index 84e583d9..6c35f3bd 100644 --- a/src/app/shared/module/poe/item/frame/item-frame-value/item-frame-value.component.ts +++ b/src/app/shared/module/poe/item/frame/item-frame-value/item-frame-value.component.ts @@ -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(); }