Skip to content

Commit

Permalink
Merge pull request #108 from wordpress-mobile/fix/inserter-focus-hand…
Browse files Browse the repository at this point in the history
…ling

Inserter - fix focus handling, awesomely spotted by @hypest
  • Loading branch information
mzorz authored Aug 14, 2018
2 parents 7524346 + 3868275 commit ab0c132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/block-management/block-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export default class BlockManager extends React.Component<PropsType, StateType>
// Update datasource UI
const index = this.getDataSourceIndexFromUid( clientId );
const dataSource = this.state.dataSource;
const block = dataSource.get( this.getDataSourceIndexFromUid( clientId ) );
dataSource.set( index, { ...block, attributes: attributes } );
const block = dataSource.get( index );
block.attributes = attributes;
// Update Redux store
this.props.onChange( clientId, attributes );
}
Expand Down

0 comments on commit ab0c132

Please sign in to comment.