2462 - Prevent searchbarfocus on 'state' source
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-09-29 08:13:49 +02:00
parent 38351cd331
commit 38df5a4d83
1 changed files with 1 additions and 1 deletions

View File

@ -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'));
}