Calling customized controls function with proper arguments
This commit is contained in:
parent
2c8a337f26
commit
0e181133c1
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 (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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user