Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

[FunctionSearch] clear query after selecting an item #2526

Description

@jasonLaster

Currently we don't clear the query when you select a function from the function list.

Patch

diff --git a/src/components/Editor/SearchBar.js b/src/components/Editor/SearchBar.js
index 7a4c581..1cd458c 100644
--- a/src/components/Editor/SearchBar.js
+++ b/src/components/Editor/SearchBar.js
@@ -410,6 +410,9 @@ const SearchBar = React.createClass({
         line: item.location.start.line,
       });

+      // clear the search ?!?!
+      this.clearSearch();
+
       this.closeSearch(e);
     }
   },

GIF

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Jira

    None yet

    Severity

    None yet

    Estimate

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions