title: Google Maps Autocomplete - Clear input if nothing selected
body: <p>I'm using Google maps autocomplete script and its working fine, but how to clear input if user has not select anyone from a dropdown list?</p>
  
  <p>For example: 
  Current situation:
  User enter "New" and see "New york" in a list, but do not choose it (clicks anywhere outside the input), and now intup has value "New".
  I want:
  User enter "New" and see "New york" in a list, but do not choose it (clicks anywhere outside the input), and now intup has empty value, because nothing in the list is not selected.</p>
  
  <p>My current code:</p>
  
  <pre><code>   &lt;input id="autocomplete2" placeholder="Enter your address" onFocus="initAutocomplete2()" type="text"&gt;
  &lt;script&gt;
      function initAutocomplete2() {
        autocomplete2 = new google.maps.places.Autocomplete(
            /** @type {!HTMLInputElement} */(document.getElementById('autocomplete2')),
            {types: ['(cities)']});
  
     }
  &lt;/script&gt;
  </code></pre>