Commit 86b9ac0b authored by jim's avatar jim

fix tagselect bug

parent 78a2070b
...@@ -17,8 +17,9 @@ TagSelectOption.isTagSelectOption = true; ...@@ -17,8 +17,9 @@ TagSelectOption.isTagSelectOption = true;
class TagSelect extends Component { class TagSelect extends Component {
static getDerivedStateFromProps(nextProps) { static getDerivedStateFromProps(nextProps) {
if ('value' in nextProps && nextProps.value) { if ('value' in nextProps && nextProps.value) {
this.setState({ value: nextProps.value }); return { value: nextProps.value };
} }
return null;
} }
state = { state = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment