Skip to content

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

Fix separated address checkbox states

Artur Smęt458cff33bab2
diff --git a/saleor/static/js_src/storefront.jsx b/saleor/static/js_src/storefront.jsx
index e76482ab46..51b64d016c 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} name="shipping_same_as_billing" />
+ <input checked={this.state.value} type="checkbox" onChange={this.formFullToggle.bind(this)} name="shipping_same_as_billing" />
{this.props.label}
</label>
</div>;