diff options
author | Jason <jason.daurus@gmail.com> | 2016-07-05 13:57:32 -0400 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-07-05 13:57:32 -0400 |
commit | 09ab2528f5c2753d6d951787fc23600944cb467d (patch) | |
tree | 7a318df92ae6927aecda875d850a2f5ebfd0aa6b /web/src/js/components/ValueEditor.jsx | |
parent | 7b543dd95c2732be2e704400d9ed04c20d795b56 (diff) | |
parent | db991e2bccc10e8e31fb200cba2a99bf94e83914 (diff) | |
download | mitmproxy-09ab2528f5c2753d6d951787fc23600944cb467d.tar.gz mitmproxy-09ab2528f5c2753d6d951787fc23600944cb467d.tar.bz2 mitmproxy-09ab2528f5c2753d6d951787fc23600944cb467d.zip |
[web] bug fixs
Diffstat (limited to 'web/src/js/components/ValueEditor.jsx')
-rwxr-xr-x | web/src/js/components/ValueEditor.jsx | 12 |
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} /> ) |