From ed12fa0f2921c9ddc180a88e2c4d85ac38d3759e Mon Sep 17 00:00:00 2001 From: Ronny Roeller Date: Fri, 23 Jun 2017 09:28:13 +0200 Subject: [PATCH] Allow to explicitely set the focus of the search bar --- paper-search-bar.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-search-bar.html b/paper-search-bar.html index b805d63..79e0186 100644 --- a/paper-search-bar.html +++ b/paper-search-bar.html @@ -162,6 +162,11 @@ 'enter': '_search' }, + + focus: function() { + this.$.input.focus(); + }, + // Private methods _filter: function(e) { this.fire('paper-search-filter');