Skip to content

Commit

Permalink
Mobile: Rename ref to innerRef on PostTitle (#14024)
Browse files Browse the repository at this point in the history
  • Loading branch information
etoledom authored Feb 21, 2019
1 parent 762f769 commit 7c32d3a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/editor/src/components/post-title/index.native.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* External dependencies
*/
import { View } from 'react-native';

/**
* WordPress dependencies
*/
Expand All @@ -8,8 +13,9 @@ import { withDispatch } from '@wordpress/data';
import { withFocusOutside } from '@wordpress/components';
import { withInstanceId, compose } from '@wordpress/compose';

import { View } from 'react-native';

/**
* Internal dependencies
*/
import styles from './style.scss';

const minHeight = 30;
Expand All @@ -30,8 +36,8 @@ class PostTitle extends Component {
}

componentDidMount() {
if ( this.props.ref ) {
this.props.ref( this );
if ( this.props.innerRef ) {
this.props.innerRef( this );
}
}

Expand Down

0 comments on commit 7c32d3a

Please sign in to comment.