diff --git a/src/ReactCursorPosition.js b/src/ReactCursorPosition.js index 41355e26..28a336ab 100644 --- a/src/ReactCursorPosition.js +++ b/src/ReactCursorPosition.js @@ -430,14 +430,14 @@ export default class extends React.Component { return e.touches[0]; } - isReactComponent(reactElement) { + getIsReactComponent(reactElement) { return typeof reactElement.type === 'function'; } shouldDecorateChild(child) { return ( !!child && - this.isReactComponent(child) && + this.getIsReactComponent(child) && this.props.shouldDecorateChildren ); }