aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/common/Button.jsx
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-10-29 15:01:50 +0100
committerGitHub <noreply@github.com>2017-10-29 15:01:50 +0100
commit731b40ce0f31e64e9bff87e00d7bfbee12138d47 (patch)
tree3b072f0518b14bdc6ffd94dacb31532cb4e89558 /web/src/js/components/common/Button.jsx
parentb32dff7520b67f6f6a93627363d91d4f30cad956 (diff)
parent9d514330cad64e589987b5e539809ae95d14e137 (diff)
downloadmitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.tar.gz
mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.tar.bz2
mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.zip
Merge pull request #2608 from mhils/web
[web] minor improvements, move options editor
Diffstat (limited to 'web/src/js/components/common/Button.jsx')
-rw-r--r--web/src/js/components/common/Button.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/components/common/Button.jsx b/web/src/js/components/common/Button.jsx
index e02ae010..02dab305 100644
--- a/web/src/js/components/common/Button.jsx
+++ b/web/src/js/components/common/Button.jsx
@@ -12,7 +12,7 @@ Button.propTypes = {
export default function Button({ onClick, children, icon, disabled, className, title }) {
return (
<div className={classnames(className, 'btn btn-default')}
- onClick={!disabled && onClick}
+ onClick={disabled ? undefined : onClick}
disabled={disabled}
title={title}>
{icon && (<i className={"fa fa-fw " + icon}/> )}