From 38df5a4d83071a97f0c4cd94581d7522c098eb32 Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 29 Sep 2020 08:13:49 +0200 Subject: [PATCH] 2462 - Prevent searchbarfocus on 'state' source --- front/core/components/searchbar/searchbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/core/components/searchbar/searchbar.js b/front/core/components/searchbar/searchbar.js index 8adc40b67..89b5d7df6 100644 --- a/front/core/components/searchbar/searchbar.js +++ b/front/core/components/searchbar/searchbar.js @@ -251,7 +251,7 @@ export default class Searchbar extends Component { this.model.clear(); if (source != 'state') this.transition = this.$state.go(state, params, opts).transition; - if (source != 'bar') + if (source != 'bar' && (source != 'state' || this.$state.is(this.baseState))) focus(this.element.querySelector('vn-textfield input')); }