Skip to content

Commit

Permalink
Merge pull request #633 from wordpress-mobile/issue/ios-title-focus-t…
Browse files Browse the repository at this point in the history
…oolbar

Remove JS handling of title focus
  • Loading branch information
etoledom committed Feb 21, 2019
2 parents e613f48 + 3d6156a commit a2c18b8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/block-management/block-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,11 @@ export class BlockManager extends React.Component<PropsType, StateType> {
}

renderHeader() {
const focusTitle = this.props.title === '' && this.props.blockCount === 0;

return (
<View style={ styles.titleContainer }>
<PostTitle
setRef={ ( ref ) => {
if ( focusTitle && ref ) {
ref.focus();
this.titleViewRef = ref;
}
this.titleViewRef = ref;
} }
title={ this.props.title }
onUpdate={ this.props.setTitleAction }
Expand Down

0 comments on commit a2c18b8

Please sign in to comment.