Enter key on text inputs don't submit forms that use vue-simple-suggest #134
Labels
bug
Something isn't working
hacktoberfest
This issue is participating in hacktoberfest
help wanted
Extra attention is needed
patch
This is a thing to include in the next patch
I'm submitting a ...
What is the current behavior?
I'm using the vue-simple-suggest component inside a form that has a @submit.prevent event on it. If i'm pressing the enter key on a random input from the form, the form doesn't submit. I tried to set the prevent-submit prop to false, it does fix the issue but it breaks other scenarios.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
The form should submit.
How are you importing Vue-simple-suggest?
import VueSimpleSuggest from 'vue-simple-suggest/lib'
)import VueSimpleSuggest from 'vue-simple-suggest'
)import VueSimpleSuggest from 'vue-simple-suggest/dist/es7'
)import VueSimpleSuggest from 'vue-simple-suggest'
)const VueSimpleSuggest = require('vue-simple-suggest')
)<script type="text/javascript" src="https://unpkg.com/vue-simple-suggest"></script>
)What is the motivation / use case for changing the behavior?
This isn't a normal behaviour because the component breaks other basic functionalities.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: