The answer to the “why” is complex, because the source of the API source is compressed, it is difficult to say what is actually happening.
, -, (, ).
4 :
focus, keydown, keyup, blur
, .
: :
function clearInput(){
google.maps.event.trigger(myInput,'focus');
myInput.value = '';
google.maps.event.trigger(myInput,'keydown',{keyCode:46});
google.maps.event.trigger(myInput,'keyup',{keyCode:46});
google.maps.event.trigger(myInput,'blur');
}
, .