From 51d817f7a9619e9a0285c2b76e8cd9dad18d5180 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Tue, 1 Jun 2021 12:00:07 +0530 Subject: [PATCH] #105 coolor picker slider issue fixed --- src/editor/components/jgraduate/Util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/components/jgraduate/Util.js b/src/editor/components/jgraduate/Util.js index bef100a4..20a2399d 100644 --- a/src/editor/components/jgraduate/Util.js +++ b/src/editor/components/jgraduate/Util.js @@ -10,7 +10,8 @@ export function findPos(obj) { do { curleft += obj.offsetLeft; curtop += obj.offsetTop; - } while (obj == obj.offsetParent); + // eslint-disable-next-line no-cond-assign + } while (obj = obj.offsetParent); return { left: curleft, top: curtop }; } return { left: curleft, top: curtop };