2
I’m using the V-SELECT
to make a select style Chosen
. Well, it works! But when I use "ENTER" to insert new elements, it gives SUBMIT
in the form. It’s like I give Submit only when I click the button and not when I give ENTER in the input
?
HTML
<div id="app">
<h1>Vue Select</h1>
<p>Try to add items in input using "ENTER"</p>
<form v-on:submit.prevent="submited()">
<v-select multiselect :options="options"></v-select>
<button type="submit">Submit</button>
</form>
</div>
JS
Vue.component('v-select', VueSelect.VueSelect)
new Vue({
el: '#app',
data: {
options: ["some", "thing", "another", "things"]
},
methods: {
submited(){
alert('submited!')
}
}
})
Jeez, I like that one
iview
– Rafael Augusto
@Rafaelaugusto me too, so I chose to use at work :)
– Sergio
I’ll start using too, I was using the
Vuetify
– Rafael Augusto
Cool @Sergio !! Thanks for your help and iview tip :)
– Jackson