fix font being reset to current state font on edit (#1282)
This commit is contained in:
parent
1a5048195a
commit
d3ed5a42fc
@ -1190,11 +1190,10 @@ export class App extends React.Component<any, AppState> {
|
||||
...globalSceneState.getAllElements().map((_element) => {
|
||||
if (_element.id === element.id) {
|
||||
return newTextElement({
|
||||
..._element,
|
||||
...(_element as ExcalidrawTextElement),
|
||||
x: element.x,
|
||||
y: element.y,
|
||||
text,
|
||||
font: this.state.currentItemFont,
|
||||
});
|
||||
}
|
||||
return _element;
|
||||
|
Loading…
x
Reference in New Issue
Block a user