Skip to content

Commit

Permalink
[RNMobile] Correct Buttons block width (#23616)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored Jul 6, 2020
1 parent c7c605b commit 71c07ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-native-aztec/src/AztecView.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ class AztecView extends React.Component {

render() {
// eslint-disable-next-line no-unused-vars
const { onActiveFormatsChange, style, ...otherProps } = this.props;
const { onActiveFormatsChange, ...otherProps } = this.props;
// `style` has to be destructured separately, without `otherProps`, because of:
// https://github.com/WordPress/gutenberg/issues/23611
const { style } = this.props;

if ( style.hasOwnProperty( 'lineHeight' ) ) {
delete style.lineHeight;
Expand Down

0 comments on commit 71c07ea

Please sign in to comment.