Skip to content

Commit

Permalink
[RNMobile] Fix for extra BR tag on Title field on Android (#16021)
Browse files Browse the repository at this point in the history
* Remove extra BR tag that may happen at the end of the Title field on Android when pressing Enter.key

* Make sure to set `deleteEnter={ true }` so that Android does delete the new line / BR tag on enter pressed
  • Loading branch information
daniloercoli committed Jun 7, 2019
1 parent f410c46 commit 1fbcd78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/components/post-title/index.native.js
Expand Up @@ -95,6 +95,7 @@ class PostTitle extends Component {
style={ style }
fontSize={ 24 }
fontWeight={ 'bold' }
deleteEnter={ true }
onChange={ ( value ) => {
this.props.onUpdate( value );
} }
Expand Down

0 comments on commit 1fbcd78

Please sign in to comment.