aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ValueEditor
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-07-25 17:45:42 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-07-25 17:45:42 -0700
commit03a596d1d92e12125f0624626b040dc2919e24c6 (patch)
treee88128bcc7d01aae1ad44b9c0e0daa72e1327bcd /web/src/js/components/ValueEditor
parent67bfc1df147f8a6daa847146625d8887a44ac338 (diff)
downloadmitmproxy-03a596d1d92e12125f0624626b040dc2919e24c6.tar.gz
mitmproxy-03a596d1d92e12125f0624626b040dc2919e24c6.tar.bz2
mitmproxy-03a596d1d92e12125f0624626b040dc2919e24c6.zip
simplify stop edit
Diffstat (limited to 'web/src/js/components/ValueEditor')
-rw-r--r--web/src/js/components/ValueEditor/ValueEditor.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/components/ValueEditor/ValueEditor.jsx b/web/src/js/components/ValueEditor/ValueEditor.jsx
index dd9c2cde..852f82c4 100644
--- a/web/src/js/components/ValueEditor/ValueEditor.jsx
+++ b/web/src/js/components/ValueEditor/ValueEditor.jsx
@@ -59,7 +59,7 @@ export default class ValueEditor extends Component {
return (
<div
ref={input => this.input = input}
- tabIndex={!this.props.readonly && "0"}
+ tabIndex={this.props.readonly ? undefined : 0}
className={className}
contentEditable={this.state.editable || undefined}
onFocus={this.onFocus}