Skip to content

Commit 238a352

Browse files
Cinamonastomchentw
authored andcommitted
feat(places/SearchBox): allow other elements around SearchBox input
1 parent 7559b2f commit 238a352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros/places/SearchBox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class SearchBox extends React.PureComponent {
110110
* @see https://developers.google.com/maps/documentation/javascript/3.exp/reference#SearchBox
111111
*/
112112
const searchBox = new google.maps.places.SearchBox(
113-
this.containerElement.firstChild
113+
this.containerElement.querySelector('input')
114114
)
115115
construct(SearchBox.propTypes, updaterMap, this.props, searchBox)
116116
this.setState({

0 commit comments

Comments
 (0)