Skip to content

Commit

Permalink
fix(utils): should use contentElement
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchentw committed Dec 30, 2015
1 parent 1126245 commit 76abbfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/setContentForOptionalReactElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function setContentForOptionalReactElement(
const contentElement = Children.only(contentOptionalReactElement);
const prevContent = infoWindowLikeInstance.getContent();

const domEl = renderElement(contentOptionalReactElement, prevContent);
const domEl = renderElement(contentElement, prevContent);
infoWindowLikeInstance.setContent(domEl);
} else {
infoWindowLikeInstance.setContent(contentOptionalReactElement);
Expand Down

0 comments on commit 76abbfc

Please sign in to comment.