mirror of
https://github.com/penpot/penpot.git
synced 2026-02-27 23:03:53 +00:00
Merge pull request #2121 from andrewzhurov/3629-text-alignment-becomes-undefined-after-pasting-text-from-clipboard
🐛 Fix text alignment becoming undefined on pasting text from clipboard
This commit is contained in:
@@ -378,10 +378,7 @@ export function insertText(state, text, attrs, inlineStyles) {
|
||||
);
|
||||
|
||||
blockArray = blockArray.map((b) => {
|
||||
if (b.getText() === "") {
|
||||
return mergeBlockData(b, attrs)
|
||||
}
|
||||
return b;
|
||||
return mergeBlockData(b, attrs);
|
||||
});
|
||||
|
||||
const fragment = BlockMapBuilder.createFromArray(blockArray);
|
||||
|
||||
Reference in New Issue
Block a user