1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Bugfix: multiple strategies with list-inputs should work.

This commit is contained in:
Ivar 2017-09-13 11:39:10 +02:00
parent 8ef9def08c
commit cb79089c61
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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"
/>
<IconButton
name="add"