diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-30 09:15:58 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-30 09:15:58 +0900 |
commit | fce2434dcdef126a3ab180447e7cb48bc24ec1f9 (patch) | |
tree | c5b0671c7f9968216e962702a0628d76be21c97c /src/settings/components/form/KeymapsForm.jsx | |
parent | 808344eecfedd04149551867724e46a7988c45a0 (diff) |
Specify default props
Diffstat (limited to 'src/settings/components/form/KeymapsForm.jsx')
-rw-r--r-- | src/settings/components/form/KeymapsForm.jsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/settings/components/form/KeymapsForm.jsx b/src/settings/components/form/KeymapsForm.jsx index 26a22d7..5bb65cb 100644 --- a/src/settings/components/form/KeymapsForm.jsx +++ b/src/settings/components/form/KeymapsForm.jsx @@ -30,10 +30,6 @@ class KeymapsForm extends React.Component { } bindValue(e) { - if (!this.props.onChange) { - return; - } - let next = { ...this.props.value }; next[e.target.name] = e.target.value; @@ -48,6 +44,7 @@ KeymapsForm.propTypes = { KeymapsForm.defaultProps = { value: {}, + onChange: () => {}, }; export default KeymapsForm; |