From fa42bfd882c43d2b1271c83ccb7643474ad87b29 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 16 Nov 2016 21:57:52 +0100 Subject: [PATCH] canvas-inputs: get color variable from current node instead of global document --- src/browser/js/jquery/jquery.fake-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/js/jquery/jquery.fake-input.js b/src/browser/js/jquery/jquery.fake-input.js index fcd288a0..9929ab72 100644 --- a/src/browser/js/jquery/jquery.fake-input.js +++ b/src/browser/js/jquery/jquery.fake-input.js @@ -25,7 +25,7 @@ if (height==100 && width==100) return - self.color = getComputedStyle(document.documentElement).getPropertyValue("--color-text") + self.color = getComputedStyle(canvas[0]).getPropertyValue("--color-text") self.height=height self.width=width