aboutsummaryrefslogtreecommitdiff
path: root/src/settings/components/form/KeymapsForm.jsx
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-04-30 09:15:58 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-04-30 09:15:58 +0900
commitfce2434dcdef126a3ab180447e7cb48bc24ec1f9 (patch)
treec5b0671c7f9968216e962702a0628d76be21c97c /src/settings/components/form/KeymapsForm.jsx
parent808344eecfedd04149551867724e46a7988c45a0 (diff)
Specify default props
Diffstat (limited to 'src/settings/components/form/KeymapsForm.jsx')
-rw-r--r--src/settings/components/form/KeymapsForm.jsx5
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;