Skip to content

Commit

Permalink
feat(StandaloneSearchBox): accept wrapped input (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkettmann authored and tomchentw committed Nov 25, 2017
1 parent 7a29420 commit 55a2f55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/macros/places/StandaloneSearchBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ class SearchBox extends React.PureComponent {
/*
* @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#SearchBox
*/
const searchBox = new google.maps.places.SearchBox(element)
const searchBox = new google.maps.places.SearchBox(
element.querySelector('input') || element
)
construct(SearchBox.propTypes, updaterMap, this.props, searchBox)

componentDidMount(this, searchBox, eventMap)
Expand Down

0 comments on commit 55a2f55

Please sign in to comment.