Merge pull request #1254 from a60814billy/fix/custom-controls-calling-argument
Calling customized controls function with proper arguments
This commit is contained in:
commit
e8d2f23b81
2
src/js/controls.js
vendored
2
src/js/controls.js
vendored
@ -1587,7 +1587,7 @@ const controls = {
|
|||||||
|
|
||||||
// If function, run it and use output
|
// If function, run it and use output
|
||||||
if (is.function(this.config.controls)) {
|
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)
|
// Convert falsy controls to empty array (primarily for empty strings)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user