|
@@ -12,10 +12,6 @@ class RevisionIdForm extends React.Component {
|
|
|
super(props);
|
|
super(props);
|
|
|
|
|
|
|
|
this.state = {
|
|
this.state = {
|
|
|
- inputTextObj: {
|
|
|
|
|
- FromRev: "",
|
|
|
|
|
- ToRev: "",
|
|
|
|
|
- }
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
this.loadFilteredRevisionOptions = this.loadFilteredRevisionOptions.bind(this);
|
|
this.loadFilteredRevisionOptions = this.loadFilteredRevisionOptions.bind(this);
|
|
@@ -34,13 +30,6 @@ class RevisionIdForm extends React.Component {
|
|
|
return callback(filteredRevisionOptions);
|
|
return callback(filteredRevisionOptions);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- handleInputChange(newText, label) {
|
|
|
|
|
- const inputTextObj = this.state.inputTextObj;
|
|
|
|
|
- inputTextObj[label] = newText.replace(/\W/g, '');
|
|
|
|
|
- this.setState({ inputTextObj });
|
|
|
|
|
- return inputTextObj[label];
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* render a row (Revision component and RevisionDiff component)
|
|
* render a row (Revision component and RevisionDiff component)
|
|
|
* @param {label} label text of inputbox
|
|
* @param {label} label text of inputbox
|
|
@@ -61,7 +50,6 @@ class RevisionIdForm extends React.Component {
|
|
|
cacheOptions
|
|
cacheOptions
|
|
|
loadOptions={this.loadFilteredRevisionOptions}
|
|
loadOptions={this.loadFilteredRevisionOptions}
|
|
|
defaultOptions
|
|
defaultOptions
|
|
|
- onInputChange={(newText) => this.handleInputChange(newText, label)}
|
|
|
|
|
onChange={(selectedOption) => changeHandler(selectedOption.value)}
|
|
onChange={(selectedOption) => changeHandler(selectedOption.value)}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|