Skip to content

Commit

Permalink
Merge pull request #111 from wordpress-mobile/fix/block-height-not-re…
Browse files Browse the repository at this point in the history
…freshed

Inserter - have the RecyclerView update and re-draw item in onChange
  • Loading branch information
mzorz authored Aug 14, 2018
2 parents ab0c132 + 856533e commit 7b7429b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/block-management/block-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default class BlockManager extends React.Component<PropsType, StateType>
const dataSource = this.state.dataSource;
const block = dataSource.get( index );
block.attributes = attributes;
dataSource.set( index, block );
// Update Redux store
this.props.onChange( clientId, attributes );
}
Expand Down

0 comments on commit 7b7429b

Please sign in to comment.