Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use another syntax for form toggle

Artur Smęt4b6114e0aab5
diff --git a/saleor/static/js_src/storefront.jsx b/saleor/static/js_src/storefront.jsx
index 51b64d016c..70f5cb943a 100644
--- a/saleor/static/js_src/storefront.jsx
+++ b/saleor/static/js_src/storefront.jsx
@@ -227,7 +227,7 @@ class FormShippingToggler extends React.Component {
render() {
return <div className="checkbox">
<label>
- <input checked={this.state.value} type="checkbox" onChange={this.formFullToggle.bind(this)} name="shipping_same_as_billing" />
+ <input checked={this.state.value} type="checkbox" onChange={::this.formFullToggle} name="shipping_same_as_billing" />
{this.props.label}
</label>
</div>;