-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hi, your plugin the best from other autocompletes plugins. Thanks
But yesterday i found this problem
Focus event fire two times
In my case i send ajax on focus and i have 2 requests instead one
<template>
<div>
<h1 style="text-align: center;">Simple Example</h1>
<p>This is the simplest example.</p>
<b>Selected:</b> {{ selected || "not chosen" }}. <br><br>
<cool-select @focus="onFocus" v-model="selected" :items="items" placeholder="Select name" />
</div>
</template>
<script>
import { CoolSelect } from "vue-cool-select";
export default {
components: {
CoolSelect
},
data() {
return {
selected: null,
items: ["Anton", "Andrey", "Sasha", "Vladimir", "Dima"]
};
},
methods: {
onFocus(){
console.log('focus')
}
}
};
</script>
Metadata
Metadata
Assignees
Labels
No labels