Clear input of focus (Google places)
This commit is contained in:
@@ -79,6 +79,10 @@ class Main extends React.Component {
|
||||
var input = document.getElementById('gmaps-places-input')
|
||||
|
||||
pacSelectFirst(input)
|
||||
input.addEventListener('focus', (e) => {
|
||||
e.target.value = '';
|
||||
});
|
||||
|
||||
var options = {
|
||||
componentRestrictions: {country: 'BA'}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user