From c2f087a93dc5b4ca497319baa69fb4d6c41f17d2 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 22 May 2015 05:48:48 -0400 Subject: [PATCH] fix(dom) getCurrentByPosition: current not LI --- lib/client/dom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/client/dom.js b/lib/client/dom.js index 306c950b..bfee8393 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1013,6 +1013,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; } } + if (element && element.tagName !== 'LI') + element = null; + return element; };