Clear input of focus (Google places)

This commit is contained in:
Edin Dazdarevic
2017-04-11 14:30:56 +02:00
parent e65a6a48e8
commit 8792abcd9f

View File

@@ -79,6 +79,10 @@ class Main extends React.Component {
var input = document.getElementById('gmaps-places-input') var input = document.getElementById('gmaps-places-input')
pacSelectFirst(input) pacSelectFirst(input)
input.addEventListener('focus', (e) => {
e.target.value = '';
});
var options = { var options = {
componentRestrictions: {country: 'BA'} componentRestrictions: {country: 'BA'}
} }