From 48c06460d2d65014a474765718d2a5f5bad8f8e3 Mon Sep 17 00:00:00 2001 From: Tom Chen Date: Thu, 14 Dec 2017 21:40:23 +0800 Subject: [PATCH] chore(lib): compile from src with `babel` --- lib/components/places/SearchBox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/places/SearchBox.js b/lib/components/places/SearchBox.js index 6ef128d6..eaf20e81 100644 --- a/lib/components/places/SearchBox.js +++ b/lib/components/places/SearchBox.js @@ -230,7 +230,9 @@ var SearchBox = (exports.SearchBox = (function(_React$PureComponent) { var child = this.context[_constants.MAP].controls[ this.props.controlPosition ].removeAt(this.mountControlIndex) - this.containerElement.appendChild(child) + if (child !== undefined) { + this.containerElement.appendChild(child) + } } }, },