Calling customized controls function with proper arguments

This commit is contained in:
Raccoon 2018-11-12 15:37:46 +08:00
parent 2c8a337f26
commit 0e181133c1

2
src/js/controls.js vendored
View File

@ -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)