title: Prevent form submit on enter VueJS/Semantic UI
body: <p>Have been searching for a solution to this problem for 2 days now and none of the suggested solutions have worked so far. </p>
  
  <p>My form html is defined with</p>
  
  <pre><code>&lt;form id="quote_form" action="" method="get" class="ui large form"&gt;
  </code></pre>
  
  <p>and input text fields in the form </p>
  
  <pre><code>&lt;input v-model="city" type="text" name="quote[city]" id="city"&gt;
  </code></pre>
  
  <p>I have been trying to isolate the cause of the issue but have not been able to do so. I tried turning off the keyboard shortcuts settings for semantic ui forms: </p>
  
  <pre><code>$('.ui.form').form({
    keyboardShortcuts: false
  });
  </code></pre>
  
  <p>I have also tried to override the enter key and prevent it from triggering the submit function in these ways: </p>
  
  <pre><code>$('#quote_form').on('keyup keypress', function(e) {
    var keyCode = e.keyCode || e.which;
    if (keyCode === 13) {
      e.stopPropagation();
      e.preventDefault();
      return false;
    }
  });
  
  $(document).on("keypress", "form", function(event) {
    return event.keyCode != 13;
  });
  
  $('#quote_form').bind('keypress keydown keyup', function(e){
    if(e.keyCode == 13) { e.preventDefault(); }
  });
  </code></pre>
  
  <p>The form has multiple steps in filling it in. Each step uses a button to permit the advance to the next step. When enter is pressed then it causes the form to redirect to the first step/tab of the form. The only case where it doesn't redirect is when the rules of the current step are not satisfied. The form submission is handled by a submit button where the button itself calls methods to validate and submit the form. I can't find any connection between enter submit behaviour and the button for submitting. </p>
  
  <p>If I am missing any useful information to help isolate the cause then please let me know. I'm new to asking questions here and want to prevent my question from being considered bad as much as possible :)</p>