Level 47
what's in your script tag?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi
I was working on autocomplete search for multiple input fields. In development it is working fine while running npm run dev.
After building project using npm run build It is not working.
<input
required=""
type="text"
name="text"
autocomplete="off"
class="input"
v-model="customer.phone"
@focus="phoneFocus = true"
@blur="phoneFocus = false"
/>
<div v-if="phoneFocus">
search result here
</div>
<input
required=""
type="text"
name="text"
autocomplete="off"
class="input"
v-model="customer.name"
@focus="nameFocus = true"
@blur="nameFocus = false"
/>
<div v-if="nameFocus">
search result here
</div>
The problem is when I start searching in one input field Other search result also displaying
Please or to participate in this conversation.