From a987a2a4de58ea4378c99def58e434bd38335a4d Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 14 Sep 2014 14:19:05 -0700 Subject: [PATCH] Fix JS error on Ctrl+click in select --- adminer/static/functions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adminer/static/functions.js b/adminer/static/functions.js index c18fe9bc..cbb89fcc 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -186,6 +186,9 @@ function tableClick(event, click) { click = false; } el = el.parentNode; + if (!el) { // Ctrl+click on text fields hides the element + return; + } } el = el.firstChild.firstChild; if (click) {