aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ValueEditor.jsx
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-07-18 20:59:17 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-07-18 20:59:17 -0700
commit859bb8c99fbe285f839373c66028910eb5595604 (patch)
treea319a55af7289aa006e32909fca92c24a436c19e /web/src/js/components/ValueEditor.jsx
parent00b0d47db6961849c8a00af3d7805f5d9a9e5e2d (diff)
parent92026d26ea6d8d9134b2725cf83753ba9e5c3579 (diff)
downloadmitmproxy-859bb8c99fbe285f839373c66028910eb5595604.tar.gz
mitmproxy-859bb8c99fbe285f839373c66028910eb5595604.tar.bz2
mitmproxy-859bb8c99fbe285f839373c66028910eb5595604.zip
Merge remote-tracking branch 'jason/ui'
Diffstat (limited to 'web/src/js/components/ValueEditor.jsx')
-rwxr-xr-xweb/src/js/components/ValueEditor.jsx12
1 files changed, 1 insertions, 11 deletions
diff --git a/web/src/js/components/ValueEditor.jsx b/web/src/js/components/ValueEditor.jsx
index 0316924f..5f1bf2dc 100755
--- a/web/src/js/components/ValueEditor.jsx
+++ b/web/src/js/components/ValueEditor.jsx
@@ -4,27 +4,17 @@ import ValidateEditor from './ValueEditor/ValidateEditor'
export default class ValueEditor extends Component {
- static contextTypes = {
- returnFocus: PropTypes.func,
- }
-
static propTypes = {
content: PropTypes.string.isRequired,
onDone: PropTypes.func.isRequired,
inline: PropTypes.bool,
}
- constructor(props) {
- super(props)
- this.focus = this.focus.bind(this)
- }
-
render() {
- var tag = this.props.inline ? "span" : 'div'
+ var tag = this.props.inline ? 'span' : 'div'
return (
<ValidateEditor
{...this.props}
- onStop={() => this.context.returnFocus()}
tag={tag}
/>
)