Commit 9381c060 authored by Tim Visée's avatar Tim Visée
Browse files

Merge branch '332-focus-user-search-after-clicking-user-in-advanced-buy-screen' into 'master'

Resolve "Focus user search after clicking user in advanced buy screen"

Closes #332

See merge request !190
parents d9cdce3b e9a3e66a
Pipeline #191367683 passed with stage
in 5 minutes and 11 seconds
......@@ -8,6 +8,7 @@
<div class="ui transparent icon input">
<input v-model="query"
:placeholder="__('') + '...'"
type="text" />
<div v-if="searching" class="ui active inline tiny loader"></div>
<i v-if="!searching" v-on:click.prevent.stop="search(query)" class="icon link">
......@@ -58,6 +59,11 @@
// Focus the search field for quick new searches
let searchField = document.getElementById("user-search");
searchField.setSelectionRange(0, searchField.value.length)
// Find the user object, or create a new one
let item = this.cart.filter(i => ==;
if(item.length <= 0) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment