mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix font being reset to current state font on edit (#1282)
This commit is contained in:
parent
1a5048195a
commit
d3ed5a42fc
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue