Merge pull request #1254 from a60814billy/fix/custom-controls-calling-argument

Calling customized controls function with proper arguments
This commit is contained in:
Sam Potts 2018-11-12 21:32:31 +11:00 committed by GitHub
commit e8d2f23b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)