From 10e7eddae99376fcbe78260673cbdb007fcdfbdd Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Tue, 14 Aug 2018 09:20:55 -0300 Subject: [PATCH] fix focus handling - awesomely spotted by @hypest --- src/block-management/block-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block-management/block-manager.js b/src/block-management/block-manager.js index 20cb053bb3b1cc..896a2dfa320807 100644 --- a/src/block-management/block-manager.js +++ b/src/block-management/block-manager.js @@ -116,7 +116,7 @@ export default class BlockManager extends React.Component 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 ); }