- 
                Notifications
    
You must be signed in to change notification settings  - Fork 74
 
Closed
Labels
bugSomething isn't workingSomething isn't workinghacktoberfestThis issue is participating in hacktoberfestThis issue is participating in hacktoberfesthelp wantedExtra attention is neededExtra attention is neededpatchThis is a thing to include in the next patchThis is a thing to include in the next patch
Description
I'm submitting a ...
- bug report
 - feature request
 - support request
 
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
- Build a form that has a submit event on it
 - Add a submit button
 - Add a text input and a vue-simple-suggest component
 - Press enter inside the text input
 
What is the expected behavior?
The form should submit.
How are you importing Vue-simple-suggest?
-  ESNext (original code, single-file .vue component, css included) (
import VueSimpleSuggest from 'vue-simple-suggest/lib') -  ES6 (
import VueSimpleSuggest from 'vue-simple-suggest') -  ES7 and above (
import VueSimpleSuggest from 'vue-simple-suggest/dist/es7') -  Bundled version (
import VueSimpleSuggest from 'vue-simple-suggest') -  CommonJS (
const VueSimpleSuggest = require('vue-simple-suggest')) -  UMD Component (
<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:
- Vue.js Version: 2.5.13
 - Vue-simple-suggest version: 1.9.5
 - Browser: Chrome Version 76.0.3809.100 (Official Build) (64-bit)
 - Language: ES6
 
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghacktoberfestThis issue is participating in hacktoberfestThis issue is participating in hacktoberfesthelp wantedExtra attention is neededExtra attention is neededpatchThis is a thing to include in the next patchThis is a thing to include in the next patch