From 0f0c3eb8cf2965fb3446e4be83578008d6da5ae3 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 22 Jul 2020 16:44:07 +0200 Subject: [PATCH] Fix click issue --- UI/Input/DropDown.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UI/Input/DropDown.ts b/UI/Input/DropDown.ts index fc7012a..57c302d 100644 --- a/UI/Input/DropDown.ts +++ b/UI/Input/DropDown.ts @@ -28,7 +28,10 @@ export class DropDown extends InputElement { for (const v of this._values) { this.ListenTo(v.shown._source); } - this.ListenTo(this._value) + this.ListenTo(this._value); + + this.onClick(() => {}) // by registering a click, the click event is consumed and doesn't bubble furter to other elements, e.g. checkboxes + }