From 35cf438ce1e8fc217fbbaea37cc96ada89549c93 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Thu, 6 Jun 2019 18:50:50 -0700 Subject: [PATCH] Fixed check for click event causing column white space to be clickable --- themes/grav/app/utils/finderjs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/grav/app/utils/finderjs.js b/themes/grav/app/utils/finderjs.js index 8bacd320..a893ed4f 100644 --- a/themes/grav/app/utils/finderjs.js +++ b/themes/grav/app/utils/finderjs.js @@ -104,7 +104,7 @@ class Finder { const column = target.closest(`.${this.config.className.col}`); const item = target.closest(`.${this.config.className.item}`); - if (item) { + if (item.length) { this.$emitter.emit('item-selected', { column, item }); } }