title: jquery only worked while debugging?
body: <p>I have following code, the autocomplete only work with the first character, after that, it stopped doing anything. But if run while debugging with chrome dev tool (few breakpoints here and there), it works fine. So maybe there is a timing issue? </p>
  
  <p>The url is mvc controller action returning JsonResult using entity framework, which is called every time in debugging, but only for the first letter without debugging</p>
  
  <p>Any help appreciated!</p>
  
  <pre><code>$(function () {
  
      $("#customer").autocomplete({
          source: function (request, response) {
              var term = $("#input").val();
  
              $.ajax({
                  url: "/Home/AutoCompleteCustomer",
                  type: "POST",
                  dataType: "json",
                  data: { term: term },
                  success: function (data) {
                      response($.map(data, function (item) {
                          return { label: item.CUST_NM, value: item.CUST_NM };
                      }))
                  },
                  error: function (e) {
                      console.log(e);
                  }
              })},
              minLength: 1
      });
  
  // More code beyond...
  
  });
  </code></pre>
  
  <p><strong>Update</strong>: I should point out I am using polymer component paper-input-autocomplete: <a href="https://customelements.io/rodo1111/paper-input-autocomplete/" rel="nofollow">https://customelements.io/rodo1111/paper-input-autocomplete/</a>
  Maybe that has something to do with it.</p>
  
  <p>With this component the request in jason looks like following, that's why I cannot use it:
  JSON.stringify(request);
  "{"term":"\n    \n      \n    \n\n    \n    \n\n    \n       \n    \n\n    \n      \n\n      \n        Customer Name\n      \n\n      \n    \n\n    \n      \n      \n    \n\n    \n      \n    \n\n    Customer Name is required!\n  \n    \n  \n  \n      \n  \n    \n    \n    \n    \n\n    \n      \n    \n  \n  "}"</p>
  
  <p><strong>UPDATE</strong>: Switched to another component. Thanks to everyone trying to help!</p>