From 63d60c354e7514c59fb3454bedadf778dc2010a7 Mon Sep 17 00:00:00 2001 From: sveisvei Date: Sun, 4 Dec 2016 13:55:43 +0100 Subject: [PATCH] fix button action not affecting form --- frontend/src/component/feature/form/strategies-add.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/feature/form/strategies-add.jsx b/frontend/src/component/feature/form/strategies-add.jsx index 44fcf733a7..e5be2d4b1f 100644 --- a/frontend/src/component/feature/form/strategies-add.jsx +++ b/frontend/src/component/feature/form/strategies-add.jsx @@ -24,11 +24,16 @@ class AddStrategy extends React.Component { }); }; + stopPropagation (e) { + e.stopPropagation(); + e.preventDefault(); + } + render () { return (
- - + this.setSort(e.target.getAttribute('data-target'))}> Add Strategy: {this.props.strategies.map((s) => this.addStrategy(s.name)}>{s.name})}