Revert change from using value back to defaultValue

[MAILPOET-2826]
This commit is contained in:
Rostislav Wolny
2020-04-01 20:45:49 +02:00
committed by Veljko V
parent 0cb5da1ee5
commit b296afd659

View File

@@ -278,8 +278,7 @@ class Selection extends React.Component {
disabled={this.props.field.disabled}
data-placeholder={this.props.field.placeholder}
multiple={this.props.field.multiple}
value={selectedValues || undefined}
onChange={() => null}
defaultValue={selectedValues}
{...this.props.field.validation}// eslint-disable-line react/jsx-props-no-spreading
>
{ this.insertEmptyOption() }