diff --git a/src/ui/components/common/DirInput.tsx b/src/ui/components/common/DirInput.tsx index e0ba65d..569c69c 100644 --- a/src/ui/components/common/DirInput.tsx +++ b/src/ui/components/common/DirInput.tsx @@ -62,7 +62,11 @@ export default class DirInput extends React.Component { render() { return (
- + { + this.setState({ value: text }) + + if (this.props.onChange) this.props.onChange(text) + }}/>
diff --git a/src/ui/components/common/TextInput.tsx b/src/ui/components/common/TextInput.tsx index e83fbce..cb2195e 100644 --- a/src/ui/components/common/TextInput.tsx +++ b/src/ui/components/common/TextInput.tsx @@ -44,6 +44,8 @@ export default class TextInput extends React.Component { }} />
{ this.setState({ value: '' }) + + if (this.props.onChange) this.props.onChange('') }}>