We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f1616 commit b4d8013Copy full SHA for b4d8013
src/components/PlaceholderWithoutTracking.jsx
@@ -60,7 +60,7 @@ class PlaceholderWithoutTracking extends React.Component {
60
render() {
61
const { className, height, placeholder, style, width } = this.props;
62
63
- if (placeholder && placeholder.hasOwnProperty('getBoundingClientRect')) {
+ if (placeholder && typeof placeholder.type !== 'function') {
64
return React.cloneElement(placeholder,
65
{ ref: el => this.placeholder = el });
66
}
0 commit comments