fix issue of description field return empty value, unchange modification from package.json

This commit is contained in:
Le Long 2017-06-16 16:04:12 +02:00
parent aff9dc0b65
commit 4de6636042
2 changed files with 2 additions and 4 deletions

View file

@ -59,9 +59,5 @@
"electron": "^1.4.15",
"electron-builder": "^11.7.0",
"electron-debug": "^1.1.0"
},
"dependencies": {
"react-simplemde-editor": "^3.6.11",
"style-loader": "^0.18.2"
}
}

View file

@ -86,6 +86,8 @@ export class FormField extends React.PureComponent {
getValue() {
if (this.props.type == "checkbox") {
return this.refs.field.checked;
} else if (this.props.type == "SimpleMDE") {
return this.refs.field.simplemde.value();
} else {
return this.refs.field.value;
}