mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
Bugfix: multiple strategies with list-inputs should work.
This commit is contained in:
parent
8ef9def08c
commit
cb79089c61
@ -7,8 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
The latest version of this document is always available in
|
The latest version of this document is always available in
|
||||||
[releases][releases-url].
|
[releases][releases-url].
|
||||||
|
|
||||||
## [Unreleased]
|
## [3.0.0-alpha.2]
|
||||||
- show sdk version as part of instances details.
|
- show sdk version as part of instances details.
|
||||||
|
- Bugfix: multiple strategies with list-inputs should work.
|
||||||
|
|
||||||
## [3.0.0-alpha.1] - 2017-06-28
|
## [3.0.0-alpha.1] - 2017-06-28
|
||||||
- updated paths to use new admin api paths
|
- updated paths to use new admin api paths
|
||||||
|
@ -34,8 +34,9 @@ export default class InputList extends Component {
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const { name, list, setConfig } = this.props;
|
const { name, list, setConfig } = this.props;
|
||||||
const inputValue = document.querySelector(`[name="${name}_input"]`);
|
const inputValue = this.refs.input.inputRef;
|
||||||
if (inputValue && inputValue.value) {
|
if (inputValue && inputValue.value) {
|
||||||
list.push(inputValue.value);
|
list.push(inputValue.value);
|
||||||
inputValue.value = '';
|
inputValue.value = '';
|
||||||
@ -68,6 +69,7 @@ export default class InputList extends Component {
|
|||||||
label="Add list entry"
|
label="Add list entry"
|
||||||
onFocus={this.onFocus}
|
onFocus={this.onFocus}
|
||||||
onBlur={this.onBlur}
|
onBlur={this.onBlur}
|
||||||
|
ref="input"
|
||||||
/>
|
/>
|
||||||
<IconButton
|
<IconButton
|
||||||
name="add"
|
name="add"
|
||||||
|
Loading…
Reference in New Issue
Block a user