mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
fix code search bug
This commit is contained in:
@@ -192,7 +192,7 @@ class Search extends Component {
|
|||||||
onSearch = () => {
|
onSearch = () => {
|
||||||
const { value } = this.state;
|
const { value } = this.state;
|
||||||
const { repoID } = this.props;
|
const { repoID } = this.props;
|
||||||
if (this.inputValue === '' || this.getValueLength(this.inputValue) < 3) {
|
if (this.inputValue === '' || getValueLength(this.inputValue) < 3) {
|
||||||
this.setState({
|
this.setState({
|
||||||
highlightIndex: 0,
|
highlightIndex: 0,
|
||||||
resultItems: [],
|
resultItems: [],
|
||||||
|
@@ -62,7 +62,7 @@ class Search extends Component {
|
|||||||
}
|
}
|
||||||
this.inputValue = newValue.trim();
|
this.inputValue = newValue.trim();
|
||||||
|
|
||||||
if (this.inputValue === '' || _this.getValueLength(this.inputValue) < 3) {
|
if (this.inputValue === '' || getValueLength(this.inputValue) < 3) {
|
||||||
this.setState({
|
this.setState({
|
||||||
isResultShow: false,
|
isResultShow: false,
|
||||||
isResultGetted: false
|
isResultGetted: false
|
||||||
|
Reference in New Issue
Block a user