As a newcomer to VueJS, I am facing issues with using the tail.select plugin in my VueJS project.
Even though I have imported the plugin in my main.js file using import 'tail.select'
When I try to call tail.select(".select")
in the mounted
hook, it throws an error saying
Uncaught ReferenceError: tail is not defined
.
Here is the HTML code:
<select class="form-control form-control-sm select">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
And here is the JavaScript code:
export default {
mounted(){
flatpickr('.datepicker',{
altFormat: "F j, Y",
dateFormat: "Y-m-d",
})
tail.select(".select")
}
}