diff --git a/ui-admin/src/js/components/common/dialog/InputDialog.jsx b/ui-admin/src/js/components/common/dialog/InputDialog.jsx index 197d5693ff97eaaa3460df9718b777628ee13e7c..09fa1d5b224496ff0cbe16a80edee9b3c9eb14ee 100644 --- a/ui-admin/src/js/components/common/dialog/InputDialog.jsx +++ b/ui-admin/src/js/components/common/dialog/InputDialog.jsx @@ -44,13 +44,18 @@ class InputDialog extends React.Component { const { onConfirm } = this.props const { value } = this.state onConfirm(value) - this.clearInput() + + if (!this.props.inputValue) { + this.clearInput() + } } handleCancelClick() { const { onCancel } = this.props onCancel() - this.clearInput() + if (!this.props.inputValue) { + this.clearInput() + } } clearInput() {