From cb79089c61882a8b508a66dee0fc20e94c31c1ce Mon Sep 17 00:00:00 2001 From: Ivar Date: Wed, 13 Sep 2017 11:39:10 +0200 Subject: [PATCH] Bugfix: multiple strategies with list-inputs should work. --- frontend/CHANGELOG.md | 3 ++- frontend/src/component/feature/form/strategy-input-list.jsx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/CHANGELOG.md b/frontend/CHANGELOG.md index 6088f5b233..04901f414f 100644 --- a/frontend/CHANGELOG.md +++ b/frontend/CHANGELOG.md @@ -7,8 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). The latest version of this document is always available in [releases][releases-url]. -## [Unreleased] +## [3.0.0-alpha.2] - show sdk version as part of instances details. +- Bugfix: multiple strategies with list-inputs should work. ## [3.0.0-alpha.1] - 2017-06-28 - updated paths to use new admin api paths diff --git a/frontend/src/component/feature/form/strategy-input-list.jsx b/frontend/src/component/feature/form/strategy-input-list.jsx index 6bd01c3c35..6bdb59590a 100644 --- a/frontend/src/component/feature/form/strategy-input-list.jsx +++ b/frontend/src/component/feature/form/strategy-input-list.jsx @@ -34,8 +34,9 @@ export default class InputList extends Component { e.stopPropagation(); } + const { name, list, setConfig } = this.props; - const inputValue = document.querySelector(`[name="${name}_input"]`); + const inputValue = this.refs.input.inputRef; if (inputValue && inputValue.value) { list.push(inputValue.value); inputValue.value = ''; @@ -68,6 +69,7 @@ export default class InputList extends Component { label="Add list entry" onFocus={this.onFocus} onBlur={this.onBlur} + ref="input" />