Skip to content

Commit e8d2f23

Browse files
authored
Merge pull request sampotts#1254 from a60814billy/fix/custom-controls-calling-argument
Calling customized controls function with proper arguments
2 parents 2c8a337 + 0e18113 commit e8d2f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ const controls = {
15871587

15881588
// If function, run it and use output
15891589
if (is.function(this.config.controls)) {
1590-
this.config.controls = this.config.controls.call(this.props);
1590+
this.config.controls = this.config.controls.call(this, props);
15911591
}
15921592

15931593
// Convert falsy controls to empty array (primarily for empty strings)

0 commit comments

Comments
 (0)