Skip to content

Commit

Permalink
fix how additional styles get applied
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Feb 21, 2023
1 parent 733dfc4 commit 6e28f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/register-block-extension/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function registerBlockExtension(
const newClassName = classnames(className, additionalClassName);

let additionalStyles = null;
let newStyles = {};
let newStyles = { ...style };
if (typeof inlineStyleGenerator === 'function') {
additionalStyles = inlineStyleGenerator(attributes);
newStyles = { ...style, ...additionalStyles };
Expand Down

0 comments on commit 6e28f24

Please sign in to comment.