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/BlacklistForm.jsx | |
parent | 808344eecfedd04149551867724e46a7988c45a0 (diff) |
Specify default props
Diffstat (limited to 'src/settings/components/form/BlacklistForm.jsx')
-rw-r--r-- | src/settings/components/form/BlacklistForm.jsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/settings/components/form/BlacklistForm.jsx b/src/settings/components/form/BlacklistForm.jsx index cee04bd..cf7cffe 100644 --- a/src/settings/components/form/BlacklistForm.jsx +++ b/src/settings/components/form/BlacklistForm.jsx @@ -25,10 +25,6 @@ class BlacklistForm extends React.Component { } bindValue(e) { - if (!this.props.onChange) { - return; - } - let name = e.target.name; let index = e.target.getAttribute('data-index'); let next = this.props.value ? this.props.value.slice() : []; @@ -52,6 +48,7 @@ BlacklistForm.propTypes = { BlacklistForm.defaultProps = { value: [], + onChange: () => {}, }; export default BlacklistForm; |