From 039aef04ed50274ea26bb19578fcbe953d2232ed Mon Sep 17 00:00:00 2001 From: Ammiel Date: Sun, 18 Sep 2016 12:04:51 -0500 Subject: [PATCH] Search bookmarks as soon as characters are typed Fixes #2778 --- js/about/bookmarks.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/about/bookmarks.js b/js/about/bookmarks.js index 7a25c80439c..da042d3e0bb 100644 --- a/js/about/bookmarks.js +++ b/js/about/bookmarks.js @@ -254,10 +254,13 @@ class AboutBookmarks extends React.Component { return title.match(new RegExp(searchTerm, 'gi')) }) } + componentDidMount () { + this.refs.bookmarkSearch.focus() + } render () { return

- + { this.state.search ?