From 80eac6e48db3b0fbc0e33232cea5114d9e71948f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 27 Feb 2019 23:21:16 +0100 Subject: [PATCH] ignore clicking on root --- src/ui/web/ListView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/web/ListView.js b/src/ui/web/ListView.js index 07583a7c..2fb377d4 100644 --- a/src/ui/web/ListView.js +++ b/src/ui/web/ListView.js @@ -60,6 +60,9 @@ export default class ListView { } _onClick(event) { + if (event.target === this._root) { + return; + } let childNode = event.target; while (childNode.parentNode !== this._root) { childNode = childNode.parentNode;