Skip to content

Commit

Permalink
making sure to have the RecyclerView update and re-draw the elements …
Browse files Browse the repository at this point in the history
…in viewport when onChange
  • Loading branch information
mzorz committed Aug 14, 2018
1 parent ab0c132 commit 856533e
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 856533e

Please sign in to comment.