react-images-viewer
Advanced tools
Comparing version 1.6.5 to 1.6.6
{ | ||
"name": "react-images-viewer", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"description": "Create an react-images-viewer component.", | ||
@@ -5,0 +5,0 @@ "main": "lib/ImgsViewer.js", |
@@ -13,5 +13,5 @@ import React, { Component } from 'react' | ||
componentDidMount() { | ||
const p = document.createElement('div') | ||
document.body.appendChild(p) | ||
this.portalElement = p | ||
const div = document.createElement('div') | ||
document.body.appendChild(div) | ||
this.portalElement = div | ||
this.componentDidUpdate() | ||
@@ -52,3 +52,3 @@ } | ||
Portal.propTypes = { | ||
children: PropsTypes.element, | ||
children: PropsTypes.arrayOf(PropsTypes.any), | ||
} |
211106