Skip to content

Commit c36c2fe

Browse files
committed
Support overriding (theme) onValueChange in Switch
1 parent 1c7d1d8 commit c36c2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/switch/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class Switch extends BaseComponent {
107107
const {disabled} = this.getThemeProps();
108108

109109
if (!disabled) {
110-
_.invoke(this.props, 'onValueChange', !this.props.value);
110+
_.invoke(this.getThemeProps(), 'onValueChange', !this.props.value);
111111
}
112112
};
113113

0 commit comments

Comments
 (0)