aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ValueEditor.jsx
diff options
context:
space:
mode:
authorJason <jason.daurus@gmail.com>2016-07-05 13:57:32 -0400
committerJason <jason.daurus@gmail.com>2016-07-05 13:57:32 -0400
commit09ab2528f5c2753d6d951787fc23600944cb467d (patch)
tree7a318df92ae6927aecda875d850a2f5ebfd0aa6b /web/src/js/components/ValueEditor.jsx
parent7b543dd95c2732be2e704400d9ed04c20d795b56 (diff)
parentdb991e2bccc10e8e31fb200cba2a99bf94e83914 (diff)
downloadmitmproxy-09ab2528f5c2753d6d951787fc23600944cb467d.tar.gz
mitmproxy-09ab2528f5c2753d6d951787fc23600944cb467d.tar.bz2
mitmproxy-09ab2528f5c2753d6d951787fc23600944cb467d.zip
[web] bug fixs
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}
/>
)