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) => {
|
...globalSceneState.getAllElements().map((_element) => {
|
||||||
if (_element.id === element.id) {
|
if (_element.id === element.id) {
|
||||||
return newTextElement({
|
return newTextElement({
|
||||||
..._element,
|
...(_element as ExcalidrawTextElement),
|
||||||
x: element.x,
|
x: element.x,
|
||||||
y: element.y,
|
y: element.y,
|
||||||
text,
|
text,
|
||||||
font: this.state.currentItemFont,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return _element;
|
return _element;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user