Skip to content

Commit

Permalink
fix focus handling - awesomely spotted by @hypest
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorz committed Aug 14, 2018
1 parent 901e5f0 commit 10e7edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block-management/block-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class BlockManager extends React.Component<PropsType, StateType>
const index = this.getDataSourceIndexFromUid( clientId );
const dataSource = this.state.dataSource;
const block = dataSource.get( this.getDataSourceIndexFromUid( clientId ) );
dataSource.set( index, { ...block, attributes: attributes } );
block.attributes = attributes;
// Update Redux store
this.props.onChange( clientId, attributes );
}
Expand Down

0 comments on commit 10e7edd

Please sign in to comment.