From 0e181133c1570a85f0117ad0b8ac5c0008e57a88 Mon Sep 17 00:00:00 2001 From: Raccoon Date: Mon, 12 Nov 2018 15:37:46 +0800 Subject: [PATCH] Calling customized controls function with proper arguments --- src/js/controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/controls.js b/src/js/controls.js index 4f453e6a..f414f6d6 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -1587,7 +1587,7 @@ const controls = { // If function, run it and use output if (is.function(this.config.controls)) { - this.config.controls = this.config.controls.call(this.props); + this.config.controls = this.config.controls.call(this, props); } // Convert falsy controls to empty array (primarily for empty strings)